This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
mbgl::style::Style::getJSON should update according to runtime styling #12229
Labels
Core
The cross-platform C++ core, aka mbgl
feature
GL JS parity
For feature parity with Mapbox GL JS
In GL JS,
map.getStyle()
invokesstyle.serialize()
, which serializes the current state stylesheet state. This means that every runtime styling change is going to affect the layer property values on the returned JSON object.In GL Native,
mbgl::style::Style::getJSON
returns the same original style JSON set via eithermbgl::style::Style::loadJSON
ormbgl::style::Style::getURL
.We should follow GJ JS approach and keep the returned JSON up-to-date with the runtime styling changes.
The text was updated successfully, but these errors were encountered: