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.
MGLFillStyleLayer are drawn at wrong map-layer #14779
Hey i discovered an issue in version 5.0.0 in the mapbox gl native SDK for iOS.
iOS: 12.2
iPhone XR
Xcode: 10.2
In our app we draw several polygons with the following code:
`let url = URL(string: overlay.geojson_url)
// Create source and add it to the map style.
let source = MGLShapeSource(identifier: "\(overlay.id)", url: url!, options: nil)
let layer = MGLFillStyleLayer(identifier: "\(overlay.id)", source: source)
layer.fillColor = NSExpression(forConstantValue: UIColor(rgba: overlay.fill_color))
layer.fillOpacity = NSExpression(forConstantValue: overlay.fill_opacity as NSNumber)
let sourceAvailable = sources.filter({$0.identifier == overlay.id})
if sourceAvailable.count == 0 {
mapView.style!.addSource(source)
}
let annotationLayer = mapView.style?.layers.filter({$0.identifier == "com.mapbox.annotations.points"}).first
mapView.style!.insertLayer(layer, below: annotationLayer!)`
We expected to see the following behaviour like in version 4.6.0:
Instead the following happened in version 5.0.0:
The same happens in the Android SDK Version 8.0.0. In addition we discovered that the position indicator in the Android SDK (v.8.0.0) is drawn below buildings in the map.
It looks like fill extrusion layers are being rendered above fill layers. This can be repro'd in iosapp by selecting Add Building Extrusions, then Dynamically Style Polygon.
Activity
[-]MGLFillStyleLayer are drawn at wrong maplayer[/-][+]MGLFillStyleLayer are drawn at wrong map-layer[/+]jmkiley commentedon May 28, 2019
It looks like fill extrusion layers are being rendered above fill layers. This can be repro'd in
iosappby selectingAdd Building Extrusions, thenDynamically Style Polygon.cc @kkaefer
mrfaa commentedon Jun 21, 2019
Hi @jmkiley @kkaefer The same happens to me in the Android SDK Version 8.0.0. Is there any update on this issue?
Thank you very much in advance!
snkashis commentedon Jun 23, 2019
Yeah, I encountered this as well in the move to 8.0.0. Is this going to be remedied in 8.2.0?
tobrun commentedon Jun 25, 2019
cc @tmpsantos
tmpsantos commentedon Jun 25, 2019
Wondering if this is somehow related to #14844
Fix layers rendering after fill-extrusion
Fix layers rendering after fill-extrusion
Fix layers rendering after fill-extrusion
tmpsantos commentedon Jul 9, 2019
Fixed in #15065.
Fix wrong #15065 nit fix
Fix wrong #15065 nit fix
Fix wrong #15065 nit fix
Fix wrong #15065 nit fix