-
Notifications
You must be signed in to change notification settings - Fork 1.3k
asset://style.json
loading is broken
#3050
Comments
Not-best-practice-but-perhaps-interesting-stopgap I was working on elsewhere for another purpose: https://github.com/incanus/StyleServer Tap the map view to toggle the style background color black and white. Fairly crappy since we don't yet have a native live style API, but a proof of concept nonetheless. |
I’m guessing this is because |
@mitchellporter I don't see any GL styles in your Mapbox account, so the |
@friedbunny Yep, you're correct. I was using the API key for an old account sorry about that. |
As of #2746, we no longer bundle any styles with the SDK, so the asset: URL scheme is unused. Instead, point asset: to the application root for developer convenience and consistency with the Android and default asset roots. Also fixed an issue that prevented relative URLs from being treated as asset: URLs. Fixes #1208, fixes #3050.
As of #2746, we no longer bundle any styles with the SDK, so the asset: URL scheme is unused. Instead, point asset: to the application root for developer convenience and consistency with the Android and default asset roots. Also fixed an issue that prevented relative URLs from being treated as asset: URLs. Fixes #1208, fixes #3050.
It appears to be impossible to load local assets — such as styles — using the
asset://foo.json
URL scheme. This is a result of path problems, which we used to be able to work around using../../
to get back to the main app bundle.We've started pushing online styles exclusively (
mapbox://styles/user/hash
), but it should still be possible to load styles locally.Follows on from #1208, which was specific to sprite loading.
/cc @incanus @1ec5 @jfirebaugh @kkaefer
The text was updated successfully, but these errors were encountered: