Changeset 5232 in ntrip for trunk


Ignore:
Timestamp:
Jun 16, 2013, 4:46:46 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/map/bncmapwin.cpp

    r5231 r5232  
    4040
    4141#include "map/bncmapwin.h"
     42#include "bncsettings.h"
    4243#include "bncutils.h"
    4344
     
    8889void bncMapWin::loadHtmlPage() {
    8990
    90   QFile htmlFile(":/map/map_gm.html");
     91  bncSettings settings;
     92
     93  QFile htmlFile;
     94  if (settings.value("useOsmMap").toBool()) {
     95    htmlFile.setFileName(":/map/map_osm.html");
     96  }
     97  else {
     98    htmlFile.setFileName(":/map/map_gm.html");
     99  }
    91100  if (!htmlFile.open(QFile::ReadOnly)) {
    92101    qDebug() << "bncMapWin:: cannot open html file";
Note: See TracChangeset for help on using the changeset viewer.