Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Changing ref properties must unlink existing refs #7572

Closed
jfirebaugh opened this issue Jan 2, 2017 · 0 comments
Closed

Changing ref properties must unlink existing refs #7572

jfirebaugh opened this issue Jan 2, 2017 · 0 comments

Comments

@jfirebaugh
Copy link
Contributor

"Ref properties" are 'type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', and 'layout'. Of these, the first three are read-only (except see #7570 for a proposal to make 'source' read-write).

Change any of these properties must at minimum unlink layers that were originally linked via the "ref" mechanism, such that they act independently. Ideally, new possible refs are autodetected -- that's #6900. But short of that, this issue tracks the fact that the existing runtime style API will not behave as expected if you modify, say, filter or layout properties of a layer that was originally a ref.

jfirebaugh added a commit to mapbox/mapbox-gl-test-suite that referenced this issue Jan 3, 2017
jfirebaugh added a commit to mapbox/mapbox-gl-test-suite that referenced this issue Jan 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant