You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Add initializer to set sourceLayer in MGLStyleLayer #6252
The iOS MGL*StyleLayer classes do not offer a way to set this value either in the initializers in the MGLStyleLayer protocol or via a property or setter method. This feature is important for styling sources that have many layers.
Note that the core setter isn't hooked up internally to cause a refresh, so it only works when called prior to adding the source to the style. I don't foresee any technical blocker to allowing on-the-fly mutation, but it's probably not a big priority (GL JS doesn't have such an API for example).
changed the title [-]Expose setter for sourceLayer in MGL*StyleLayer classes[/-][+]Add initializer to set sourceLayer in MGLStyleLayer[/+]on Sep 7, 2016
Activity
jfirebaugh commentedon Sep 6, 2016
Note that the core setter isn't hooked up internally to cause a refresh, so it only works when called prior to adding the source to the style. I don't foresee any technical blocker to allowing on-the-fly mutation, but it's probably not a big priority (GL JS doesn't have such an API for example).
[-]Expose setter for sourceLayer in MGL*StyleLayer classes[/-][+]Add initializer to set sourceLayer in MGLStyleLayer[/+]boundsj commentedon Sep 7, 2016
Thanks for pointing that out @jfirebaugh. I adjusted the title of this issue and also proposed a fix (to add an init method only, no setter) in #6269