diff --git a/src/Charts/RideMapWindow.cpp b/src/Charts/RideMapWindow.cpp index fedb762ee..def3db743 100644 --- a/src/Charts/RideMapWindow.cpp +++ b/src/Charts/RideMapWindow.cpp @@ -65,9 +65,8 @@ RideMapWindow::RideMapWindow(Context *context, int mapType) : GcChartWindow(cont mapCombo= new QComboBox(this); mapCombo->addItem(tr("OpenStreetMap")); mapCombo->addItem(tr("Google")); - mapCombo->addItem(tr("Bing")); - mapCombo->setCurrentIndex(mapType); + setMapType(mapType); // validate mapType and set current index in mapCombo showMarkersCk = new QCheckBox(); showFullPlotCk = new QCheckBox(); @@ -92,7 +91,6 @@ RideMapWindow::RideMapWindow(Context *context, int mapType) : GcChartWindow(cont tileCombo->addItem(tr("Custom Tile Server B"), QVariant(20)); tileCombo->addItem(tr("Custom Tile Server C"), QVariant(30)); - osmTSUrl = new QLineEdit(""); osmTSUrl->setFixedWidth(250); @@ -406,9 +404,6 @@ void RideMapWindow::createHtml() if (mapCombo->currentIndex() == GOOGLE || mapCombo->currentIndex() == OSM) { // Load Google Map v3 API currentPage += QString(" \n"); - } else if (mapCombo->currentIndex() == BING) { - // Load BING Rest API Services - currentPage += QString("\n"); } #ifdef NOWEBKIT @@ -493,30 +488,6 @@ void RideMapWindow::createHtml() "}\n").arg(styleoptions == "" ? "#FFFF00" : GColor(CPLOTMARKER).name()) .arg(styleoptions == "" ? 0.4f : 1.0f); } - else if (mapCombo->currentIndex() == BING) { - currentPage += QString("function drawRouteForLatLons(latlons) {\n" - // route will be drawn with these options - " var routeOptionsYellow = {\n" - " strokeColor: new Microsoft.Maps.Color(100, 255, 255, 0),\n" - " strokeThickness: 7,\n" - " strokeDashArray: '5 0',\n" - " zIndex: -2\n" - " };\n" - - // create the route path - " var route = new Array();\n" - " var j=0;\n" - " while (j < latlons.length) { \n" - " route.push(new Microsoft.Maps.Location(latlons[j],latlons[j+1]));\n" - " j += 2;\n" - " }\n" - - // create the route Polyline - " var routeYellow = new Microsoft.Maps.Polyline(route, routeOptionsYellow);\n" - " map.entities.push(routeYellow);\n" - - "}\n"); - } currentPage += QString("function drawIntervals() { \n" // how many to draw? @@ -700,76 +671,6 @@ void RideMapWindow::createHtml() "
\n" "