From 40e47556214e999c952c1e88e026d673cdd96c72 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 20 Jun 2017 17:12:58 -0700 Subject: [core] Move setStyleJSON/URL to Style; add Map::setStyle --- platform/glfw/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'platform/glfw/main.cpp') diff --git a/platform/glfw/main.cpp b/platform/glfw/main.cpp index 97c77b3742..7192475835 100644 --- a/platform/glfw/main.cpp +++ b/platform/glfw/main.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include @@ -147,7 +148,7 @@ int main(int argc, char *argv[]) { } mbgl::util::default_styles::DefaultStyle newStyle = mbgl::util::default_styles::orderedStyles[currentStyleIndex]; - map.setStyleURL(newStyle.url); + map.getStyle().loadURL(newStyle.url); view->setWindowTitle(newStyle.name); mbgl::Log::Info(mbgl::Event::Setup, "Changed style to: %s", newStyle.name); @@ -178,7 +179,7 @@ int main(int argc, char *argv[]) { } } - map.setStyleURL(style); + map.getStyle().loadURL(style); view->run(); -- cgit v1.2.1