Per the example at https://docs.mapbox.com/ios/maps/examples/runtime-toggle-layer/ I'm able to easily add a layer from one of Mapbox's pre-defined map styles (code included in first func to show exactly what worked for me). However, when I try to add a layer from one of my own styles, it seems to be added but doesn't appear. I'm wondering what I'm missing or if this is even possible. In the same test app, I've used the URL for my second style to create the MapView temporarily so I could check the layer to ensure I'm using the proper sourceIdentifier and sourceLayerIdentifier, e.g.
Per the example at https://docs.mapbox.com/ios/maps/examples/runtime-toggle-layer/ I'm able to easily add a layer from one of Mapbox's pre-defined map styles (code included in first func to show exactly what worked for me). However, when I try to add a layer from one of my own styles, it seems to be added but doesn't appear. I'm wondering what I'm missing or if this is even possible. In the same test app, I've used the URL for my second style to create the MapView temporarily so I could check the layer to ensure I'm using the proper sourceIdentifier and sourceLayerIdentifier, e.g.
<MGLLineStyleLayer: 0x282e54080; identifier = layer-friendly-name; sourceIdentifier = mapbox://myco.abc123; sourceLayerIdentifier = layer_src_name; predicate = (null); visible = YES>
This does not work: