Closed npasparuhov closed 5 years ago
In case to use belowLayerID and aboveLayerID (bellowLayerID='exampleID') should be placed on layers that are after the layer with id exempleID
in my case i had: LineLayer id='routeFill' belowLayerID ='pulseOuterCircle' LineLayer id='pulseOuterCircle'
So it init first the 'routeFill' layer and after that 'pulseOuterCircle' so when it tries to init 'routeFill' it can not find 'pulseOuterCircle' layer and con not position it correctly
I have this code:
Simple point and line, the line is rendered later on when the route info is returned from api request.
So into the LineLayer i used belowLayerID prop which on iOS screams that - A style layer cannot be placed above (null) in the style. Make sure sibling was obtained using -[MGLStyle layerWithIdentifier:]