From 5e2b6bf636472a4464e6ab3ae0d9d01c68de041b Mon Sep 17 00:00:00 2001 From: Sudarsana Babu Nagineni Date: Thu, 7 Mar 2019 14:29:19 +0200 Subject: [core] Add MapOptions to define properties of Map To simplify the Map constructor, introduce MapOptions interface to define the properties that can be set on a Map. --- bin/render.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/render.cpp b/bin/render.cpp index bf64570965..fbf32f9a40 100644 --- a/bin/render.cpp +++ b/bin/render.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -84,7 +85,8 @@ int main(int argc, char *argv[]) { ThreadPool threadPool(4); HeadlessFrontend frontend({ width, height }, pixelRatio, fileSource, threadPool); - Map map(frontend, MapObserver::nullObserver(), frontend.getSize(), pixelRatio, fileSource, threadPool, MapMode::Static); + Map map(frontend, MapObserver::nullObserver(), frontend.getSize(), pixelRatio, + fileSource, threadPool, MapOptions().withMapMode(MapMode::Static)); if (style.find("://") == std::string::npos) { style = std::string("file://") + style; -- cgit v1.2.1