From 622f6691b70d31491773524a03da44515259e2cf Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 19 Nov 2015 16:44:19 -0800 Subject: [glfw] No longer necessary to wait for style load to add default marker --- platform/default/glfw_view.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'platform') 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) { -- cgit v1.2.1