-
-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Mapbox style URL with MapLibre #1861
Comments
Same issue. Had to upgrade to v10 since my previous version was deprecated but now can't get to run when 'styleURL' is specified. |
Is there any work around or fix for this issue? |
I got it to work using map tiler instead of the normal styleURL, https://api.maptiler.com/maps/outdoor/style.json?key=xxxxxx |
MapTiler is not Mapbox |
I have this same issue. Troubleshooting notes:
Final note: this issue was actually raised, but seems to have been skipped over - or possibly resolved? - in discussion on this PR: #1571 I've requested some more info from the authors there; TBD whether they're still active and/or would have any insight. |
A Quick patch for iOS: Hortau@a6c3c7f npmjs: @hortau/maps:8.5.1 |
@hexadecy The patch seemed to work for iOS. I really don't like forking and and patching. Hopefully the maintainers of rnmapbox can fix this soon. |
I think i fixed this for Android MapLibre in this PR #1798 |
I can get "styleURL" to run properly in v10 as long as that prop doesn't change.
But anything in MapView that is dynamic/conditionally rendered (StyleURL, UserLocation, ShapeSource, Terrain, etc) gives me an error similar to:
|
This should be fixed with |
It makes app crash after using
|
Describe the bug
When using MapLibre, it cannot display Mapbox style url like: 'mapbox://styles/mapbox/outdoors-v11'
To Reproduce
Example:
Expected behavior
Show the Mapbox style.
Actual behavior
White screen, no map.
ERROR Mapbox error [event]:Setup [code]:-1 [message]:loading style failed: unsupported URL {"filePath": "virtual bool mbgl::MGLCoreLoggingObserver::onRecord(mbgl::EventSeverity, mbgl::Event, int64_t, const std::string &)", "level": "error", "line": 30, "message": "[event]:Setup [code]:-1 [message]:loading style failed: unsupported URL"}
Versions:
Possible solution
maplibre PR #90
Set the MGLSettings useWellKnownTileServer to
MGLMapbox
.[MGLSettings useWellKnownTileServer:];
Possible options are:
MGLMapLibre
,MGLMapbox
andMGLMapTiler
.File to modify: maps/ios/RCTMGL/MGLModule.m
The text was updated successfully, but these errors were encountered: