-
Notifications
You must be signed in to change notification settings - Fork 1.3k
FillExtrusionLayer not shown for cached tile #8871
Comments
/cc @lbud |
🤕 |
@lbud to valiidate if this was a general issue with layers, I changed the FillExtrusionLayer with a FillLayer using this geojson source. This seem to be added correctly to the map though the are some differences in setup (filter + geojson source). Code used: try {
GeoJsonSource jsonSource = new GeoJsonSource("uk-borders", new URL("https://gist.githubusercontent.com/tobrun/085903199b9926950bafe35d1b4f5ff5/raw/b67da310e4df0491899ba452f899d39c05370c32/gistfile1.geojson"));
mapboxMap.addSource(jsonSource);
} catch (MalformedURLException e) {
throw new RuntimeException();
}
FillLayer fillLayer = new FillLayer("uk-borders", "uk-borders");
fillLayer.setProperties(fillColor(Color.LTGRAY), fillOpacity(0.6f));
fillLayer.setMinZoom(15);
mapboxMap.addLayer(fillLayer); @ivovandongen while they could be related. There is a small difference: the buildings disappear again when zooming to the initial zoom level. In #8833, the SymbolAnnotation don't disappear after they where rendered correctly by zooming. |
I first assumed this must be a regression, probably a recent one, but... I went back as far as the iOS 3.4.0 release (first release with runtime styling), and the bug is reproducible there. So surprisingly I think this has never worked -- addLayer needs to trigger redoing layout of the tiles from its source, and it never has. 🤦♂️ |
Use-case to reproduce this:
I'm noticing that
Side-note, this doesn't occur if you add a FillExtrusionLayer as result of
onDidFinishLoadingStyle
.The text was updated successfully, but these errors were encountered: