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.
Using initWithLayerIdentifier: with MGL*StyleLayer throws exception #6250
All MGL style layer classes (i.e. MGLBackgroundStyleLayer) implement the MGLStyleLayer protocol. That protocol declares both -[MGLStyleLayer initWithLayerIdentifier:] and -[MGLStyleLayer initWithLayerIdentifier:sourceIdentifier:] as optional.
If a developer initializes an MGLBackgroundStyleLayer (or any other) with just a layer identifier, their application will compile but crash at runtime if that code path is exercised. We should make the init methods non-optional or at least implement -[MGLStyleLayer initWithLayerIdentifier:] in all of the MGL style layer classes.
Activity