[core] parse more Style JSON properties

We're now parsing "name", "center", "zoom", "bearing", and "pitch" from the stylesheet.
This commit is contained in:
Konstantin Käfer
2016-08-15 16:16:45 +02:00
parent dfd40b27a5
commit cb33c861b4
7 changed files with 147 additions and 0 deletions

View File

@@ -781,6 +781,28 @@ void Map::removeLayer(const std::string& id) {
impl->view.deactivate();
}
#pragma mark - Defaults
std::string Map::getStyleName() const {
return impl->style->getName();
}
LatLng Map::getDefaultLatLng() const {
return impl->style->getDefaultLatLng();
}
double Map::getDefaultZoom() const {
return impl->style->getDefaultZoom();
}
double Map::getDefaultBearing() const {
return impl->style->getDefaultBearing();
}
double Map::getDefaultPitch() const {
return impl->style->getDefaultPitch();
}
#pragma mark - Toggles
void Map::setDebug(MapDebugOptions debugOptions) {