summaryrefslogtreecommitdiff
path: root/include/mbgl/map/map.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/map/map.hpp')
-rw-r--r--include/mbgl/map/map.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 62bb39e8c2..0636b80f5f 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -34,7 +34,7 @@ public:
explicit Map(RendererFrontend&,
MapObserver&,
const MapOptions&,
- const ResourceOptions&);
+ const ResourceOptions &resourceOptions = ResourceOptions());
~Map();
// Register a callback that will get called (on the render thread) when all resources have
@@ -48,8 +48,9 @@ public:
style::Style& getStyle();
const style::Style& getStyle() const;
+ std::shared_ptr<style::Style> getStylePointer();
- void setStyle(std::unique_ptr<style::Style>);
+ void setStyle(const std::shared_ptr<mbgl::style::Style>&);
// Transition
void cancelTransitions();