[core] parse more Style JSON properties
We're now parsing "name", "center", "zoom", "bearing", and "pitch" from the stylesheet.
This commit is contained in:
@@ -158,6 +158,13 @@ public:
|
||||
void addLayer(std::unique_ptr<style::Layer>, const optional<std::string>& beforeLayerID = {});
|
||||
void removeLayer(const std::string& layerID);
|
||||
|
||||
// Defaults
|
||||
std::string getStyleName() const;
|
||||
LatLng getDefaultLatLng() const;
|
||||
double getDefaultZoom() const;
|
||||
double getDefaultBearing() const;
|
||||
double getDefaultPitch() const;
|
||||
|
||||
// Feature queries
|
||||
std::vector<Feature> queryRenderedFeatures(const ScreenCoordinate&, const optional<std::vector<std::string>>& layerIDs = {});
|
||||
std::vector<Feature> queryRenderedFeatures(const ScreenBox&, const optional<std::vector<std::string>>& layerIDs = {});
|
||||
|
||||
Reference in New Issue
Block a user