summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2017-01-06 15:04:20 -0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-01-09 13:49:35 -0200
commit0caa496bb3e77f25c0d53aa46ec47cdaaac5547d (patch)
treea3275d2d44bfb552640f0b271d399bb6d53662bd
parent2a22ff7f1b1991109d404ebff9d487f4fe311ac3 (diff)
downloadqtlocation-mapboxgl-0caa496bb3e77f25c0d53aa46ec47cdaaac5547d.tar.gz
[Qt] Fixed typo s/maker/marker
It propagated via copy & paste. :-P
-rw-r--r--platform/qt/app/mapwindow.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/platform/qt/app/mapwindow.cpp b/platform/qt/app/mapwindow.cpp
index e8fb6314c6..bebf527cf2 100644
--- a/platform/qt/app/mapwindow.cpp
+++ b/platform/qt/app/mapwindow.cpp
@@ -129,51 +129,51 @@ void MapWindow::keyPressEvent(QKeyEvent *ev)
m_map->addImage("label-arrow", QImage(":label-arrow.svg"));
m_map->addImage("label-background", QImage(":label-background.svg"));
- QVariantMap makerArrow;
- makerArrow["id"] = "makerArrow";
- makerArrow["type"] = "symbol";
- makerArrow["source"] = "routeSource";
- m_map->addLayer(makerArrow);
+ QVariantMap markerArrow;
+ markerArrow["id"] = "markerArrow";
+ markerArrow["type"] = "symbol";
+ markerArrow["source"] = "routeSource";
+ m_map->addLayer(markerArrow);
- m_map->setLayoutProperty("makerArrow", "icon-image", "label-arrow");
- m_map->setLayoutProperty("makerArrow", "icon-size", 0.5);
- m_map->setLayoutProperty("makerArrow", "icon-ignore-placement", true);
+ m_map->setLayoutProperty("markerArrow", "icon-image", "label-arrow");
+ m_map->setLayoutProperty("markerArrow", "icon-size", 0.5);
+ m_map->setLayoutProperty("markerArrow", "icon-ignore-placement", true);
QVariantList arrowOffset;
arrowOffset.append(0.0);
arrowOffset.append(-15.0);
- m_map->setLayoutProperty("makerArrow", "icon-offset", arrowOffset);
-
- QVariantMap makerBackground;
- makerBackground["id"] = "makerBackground";
- makerBackground["type"] = "symbol";
- makerBackground["source"] = "routeSource";
- m_map->addLayer(makerBackground);
-
- m_map->setLayoutProperty("makerBackground", "icon-image", "label-background");
- m_map->setLayoutProperty("makerBackground", "text-field", "{name}");
- m_map->setLayoutProperty("makerBackground", "icon-text-fit", "both");
- m_map->setLayoutProperty("makerBackground", "icon-ignore-placement", true);
- m_map->setLayoutProperty("makerBackground", "text-ignore-placement", true);
- m_map->setLayoutProperty("makerBackground", "text-anchor", "left");
- m_map->setLayoutProperty("makerBackground", "text-size", 16.0);
- m_map->setLayoutProperty("makerBackground", "text-padding", 0.0);
- m_map->setLayoutProperty("makerBackground", "text-line-height", 1.0);
- m_map->setLayoutProperty("makerBackground", "text-max-width", 8.0);
+ m_map->setLayoutProperty("markerArrow", "icon-offset", arrowOffset);
+
+ QVariantMap markerBackground;
+ markerBackground["id"] = "markerBackground";
+ markerBackground["type"] = "symbol";
+ markerBackground["source"] = "routeSource";
+ m_map->addLayer(markerBackground);
+
+ m_map->setLayoutProperty("markerBackground", "icon-image", "label-background");
+ m_map->setLayoutProperty("markerBackground", "text-field", "{name}");
+ m_map->setLayoutProperty("markerBackground", "icon-text-fit", "both");
+ m_map->setLayoutProperty("markerBackground", "icon-ignore-placement", true);
+ m_map->setLayoutProperty("markerBackground", "text-ignore-placement", true);
+ m_map->setLayoutProperty("markerBackground", "text-anchor", "left");
+ m_map->setLayoutProperty("markerBackground", "text-size", 16.0);
+ m_map->setLayoutProperty("markerBackground", "text-padding", 0.0);
+ m_map->setLayoutProperty("markerBackground", "text-line-height", 1.0);
+ m_map->setLayoutProperty("markerBackground", "text-max-width", 8.0);
QVariantList iconTextFitPadding;
iconTextFitPadding.append(15.0);
iconTextFitPadding.append(10.0);
iconTextFitPadding.append(15.0);
iconTextFitPadding.append(10.0);
- m_map->setLayoutProperty("makerBackground", "icon-text-fit-padding", iconTextFitPadding);
+ m_map->setLayoutProperty("markerBackground", "icon-text-fit-padding", iconTextFitPadding);
QVariantList backgroundOffset;
backgroundOffset.append(-0.5);
backgroundOffset.append(-1.5);
- m_map->setLayoutProperty("makerBackground", "text-offset", backgroundOffset);
+ m_map->setLayoutProperty("markerBackground", "text-offset", backgroundOffset);
- m_map->setPaintProperty("makerBackground", "text-color", QColor("white"));
+ m_map->setPaintProperty("markerBackground", "text-color", QColor("white"));
QVariantList filterExpression;
filterExpression.append("==");
@@ -183,8 +183,8 @@ void MapWindow::keyPressEvent(QKeyEvent *ev)
QVariantList filter;
filter.append(filterExpression);
- m_map->setFilter("makerArrow", filter);
- m_map->setFilter("makerBackground", filter);
+ m_map->setFilter("markerArrow", filter);
+ m_map->setFilter("markerBackground", filter);
// Tilt the labels when tilting the map and make them larger
m_map->setLayoutProperty("road-label-large", "text-size", 30.0);