core, android: add support for camera roll (#3011)

This commit is contained in:
Nathan Olson
2026-01-20 00:57:48 -08:00
committed by GitHub
parent a4cf4d3ffa
commit 10dbd5d68d
57 changed files with 1275 additions and 207 deletions

View File

@@ -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"]);
}