mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

Offline Font Fallback to Avoid Missing Layers

Open riastrad opened this issue 6 years ago • 4 comments

Possibly a duplicate of #7862, but it feels unique enough that I'm opening up a new issue to address it. A user posted to the Android Plugins repo last week complaining that layers where not being applied at runtime when a map didn't have an internet connect: https://github.com/mapbox/mapbox-plugins-android/issues/970

tl;dr the root cause was the fact that the plugin was initializing a SymbolLayer with a text field and this layer was referencing a font family that was not available offline.

I would assert that runtime styling is expected to work offline, and having a runtime layer not populate when offline does not match developer expectations. Adding some sort of fallback for these situations to ensure that the layer is rendered despite the preferred font being unavailable would be a good feature to add.

cc/ @tobrun

riastrad avatar Jun 05 '19 15:06 riastrad

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

stale[bot] avatar Dec 02 '19 17:12 stale[bot]

Please reopen, this is still an issue.

hrach avatar Dec 02 '19 19:12 hrach

Is this issue followed up?

386sx avatar Apr 06 '20 20:04 386sx

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

stale[bot] avatar Oct 04 '20 06:10 stale[bot]