core, android: add support for camera roll (#3011)
This commit is contained in:
@@ -69,6 +69,13 @@ StyleParseResult Parser::parse(const std::string& json) {
|
||||
}
|
||||
}
|
||||
|
||||
if (document.HasMember("centerAltitude")) {
|
||||
const JSValue& value = document["centerAltitude"];
|
||||
if (value.IsNumber()) {
|
||||
centerAltitude = value.GetDouble();
|
||||
}
|
||||
}
|
||||
|
||||
if (document.HasMember("zoom")) {
|
||||
const JSValue& value = document["zoom"];
|
||||
if (value.IsNumber()) {
|
||||
@@ -90,6 +97,13 @@ StyleParseResult Parser::parse(const std::string& json) {
|
||||
}
|
||||
}
|
||||
|
||||
if (document.HasMember("roll")) {
|
||||
const JSValue& value = document["roll"];
|
||||
if (value.IsNumber()) {
|
||||
roll = value.GetDouble();
|
||||
}
|
||||
}
|
||||
|
||||
if (document.HasMember("transition")) {
|
||||
parseTransition(document["transition"]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user