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 --- bin/render.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/render.cpp b/bin/render.cpp index 82d851d015..51c6faef56 100644 --- a/bin/render.cpp +++ b/bin/render.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunknown-pragmas" @@ -93,7 +94,7 @@ int main(int argc, char *argv[]) { style_path = std::string("file://") + style_path; } - map.setStyleURL(style_path); + map.getStyle().loadURL(style_path); map.setLatLngZoom({ lat, lon }, zoom); map.setBearing(bearing); map.setPitch(pitch); -- cgit v1.2.1