[core] Expose Style from Snapshotter
This commit is contained in:
@@ -46,6 +46,9 @@ public:
|
||||
void setRegion(const LatLngBounds&);
|
||||
LatLngBounds getRegion() const;
|
||||
|
||||
style::Style& getStyle();
|
||||
const style::Style& getStyle() const;
|
||||
|
||||
using PointForFn = std::function<ScreenCoordinate (const LatLng&)>;
|
||||
using LatLngForFn = std::function<LatLng (const ScreenCoordinate&)>;
|
||||
using Attributions = std::vector<std::string>;
|
||||
|
||||
@@ -230,6 +230,7 @@ public:
|
||||
}
|
||||
|
||||
Map& getMap() { return map; }
|
||||
const Map& getMap() const { return map; }
|
||||
SnapshotterRendererFrontend& getRenderer() { return frontend; }
|
||||
|
||||
private:
|
||||
@@ -301,4 +302,12 @@ LatLngBounds MapSnapshotter::getRegion() const {
|
||||
return impl->getMap().latLngBoundsForCamera(getCameraOptions());
|
||||
}
|
||||
|
||||
style::Style& MapSnapshotter::getStyle() {
|
||||
return impl->getMap().getStyle();
|
||||
}
|
||||
|
||||
const style::Style& MapSnapshotter::getStyle() const {
|
||||
return impl->getMap().getStyle();
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
Reference in New Issue
Block a user