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.
Unrecognized selector exception when incorrectly using style layers #6736
changed the title [-]Fatal when using `insert(layer, below)`[/-][+]Unrecognized selector exception when incorrectly using style layers[/+]on Oct 18, 2016
Activity
1ec5 commentedon Oct 18, 2016
This line creates a layer; it doesn’t get a layer. To get an existing layer from the style, call
style().layer(identifier: "road-label-small").Also, if you want to create a style layer, never initialize an MGLStyleLayer directly. Read the MGLStyleLayer documentation for more information.
1ec5 commentedon Oct 18, 2016
The bug here is that the check itself throws an exception rather than taking us far enough to raise a more informative exception.
[-]Fatal when using `insert(layer, below)`[/-][+]Unrecognized selector exception when incorrectly using style layers[/+]