[core] Expose Style from Snapshotter

This commit is contained in:
Alexander Shalamov
2020-02-27 15:08:59 +02:00
parent 29eff4028d
commit 1577a6b537
2 changed files with 12 additions and 0 deletions

View File

@@ -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>;

View File

@@ -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