diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-11-19 16:44:19 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-01 09:15:05 -0800 |
commit | 622f6691b70d31491773524a03da44515259e2cf (patch) | |
tree | 11da3c1dbabb92de876c05cfb5de22ca29885012 /platform | |
parent | e1091db45ea5e921337f1cfccb36f46ab01dd54e (diff) | |
download | qtlocation-mapboxgl-622f6691b70d31491773524a03da44515259e2cf.tar.gz |
[glfw] No longer necessary to wait for style load to add default marker
Diffstat (limited to 'platform')
-rw-r--r-- | platform/default/glfw_view.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp index 48e9386fc7..32fb9af6bb 100644 --- a/platform/default/glfw_view.cpp +++ b/platform/default/glfw_view.cpp @@ -115,13 +115,7 @@ GLFWView::~GLFWView() { void GLFWView::initialize(mbgl::Map *map_) { View::initialize(map_); -} - -void GLFWView::notifyMapChange(mbgl::MapChange change) { - if (change == mbgl::MapChange::MapChangeDidFinishLoadingMap && !initializedDefaultMarker) { - initializedDefaultMarker = true; - map->setSprite("default_marker", makeSpriteImage(22, 22, 1)); - } + map->setSprite("default_marker", makeSpriteImage(22, 22, 1)); } void GLFWView::onKey(GLFWwindow *window, int key, int /*scancode*/, int action, int mods) { |