diff options
author | Gali Nelle <galinelle.mapbox@gmail.com> | 2020-02-03 18:59:19 +0200 |
---|---|---|
committer | Gali Nelle <galinelle.mapbox@gmail.com> | 2020-02-04 13:55:44 +0200 |
commit | 4b0eef6104bf8c33bf105b7173dbc5f0f65e1efb (patch) | |
tree | e932d3b62227d677b8e40c87277261546a80c4c5 /metrics/next-macos-xcode11-release/render-tests/icon-text-fit/both-collision-variable-anchor-text-fit/metrics.json | |
parent | 391a5642e0b6ce1a07debfadd7619baf5bb04c9e (diff) | |
download | qtlocation-mapboxgl-upstream/galinelle_setStyle++.tar.gz |
Move AnnotationManager inside Style, make Style sharedupstream/galinelle_setStyle++
This change enables to share a style across Maps.
The goal is to avoid loading the same style multiple times if
multiple maps with the same style are used.
Use cases range from minimap to snapshotters.
This change moves the AnnotationManager inside the Style itself.
In this way, the old behavior is retained under the old use-cases:
single map-single style.
When using the style on multiple maps, changing annotations on the
style, or on one map will result in changing them on all
maps where that style is used.
To add more flexibility, moving forward, a possible solution
can be to support multiple stacked styles in the Map, that will
then be flattened in the map.
In this way a style will be a group of layers that can be added
or removed without much troubles.
Practical use case would be a style with the annotations on
top of a style for the base map, that could be changed by the
user.
This would allow avoiding the current required procedure of
modifying the new style when it gets set, in order to add the
annotations.
Diffstat (limited to 'metrics/next-macos-xcode11-release/render-tests/icon-text-fit/both-collision-variable-anchor-text-fit/metrics.json')
0 files changed, 0 insertions, 0 deletions