-
Notifications
You must be signed in to change notification settings - Fork 58
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
Show details on map (like points of interest or roads directions) #94
Comments
When I've seen issues like this before, it's either because the theme used doesn't match the tile data, or there are expressions in the theme that aren't supported by this library. To troubleshoot the theme, consider adding a logger to the theme, e.g. Consider providing an example that we can look into here or a copy of your theme on this ticket. |
Thanks for the reply! Today, i've noticed that the names of the points of interest are now appearing in the map without the icons. Road directions are still missing. I've added the logger and the result was:
So i guess that the problem is what you've said, "expressions in the theme that aren't supported by this library". But can i do something to show at least road directions? My theme json is hosted here and it was created by Mapbox Studio. |
Thanks for the detail. Icons aren't supported yet. I'm not sure what you mean by "road directions"? For |
I meant those arrows in the first image showing the traffic direction of the road. But you said that icons aren't supported yet and i guess that's an icon. I'm closing this issue, thanks for the help and keep the good work :). |
I've started working on support for sprites here: |
Wow! Looks great. Can't wait to have it released! 👏 |
There are still a few issues to resolve:
Maptiler has sprites represented in their json as follows: "us-interstate_3": {
"width": 44,
"height": 36,
"x": 38,
"y": 278,
"pixelRatio": 2.0
} Mapbox specifies "us-interstate-3": {
"width": 52,
"height": 44,
"x": 286,
"y": 436,
"pixelRatio": 2,
"placeholder": [
0,
16,
52,
28
],
"visible": true
} this is the spec: https://docs.mapbox.com/mapbox-gl-js/style-spec/sprite/ Any help on this would be appreciated. For next steps, I'm thinking that we should reach out to Maptiler and ask them, or have a look a one of the existing open source libraries (such as maplibre.org) to find out what they do. |
Congratulations for the good work!
I've started using this plugin because i needed rotation in my map and better fidelity to polilyne routes. To this objective, the plugin worked like a charm!
But I noticed that a lot of data that is present in my custom Mapbox theme is not displayed on the map:
Mapbox Preview of my Theme
My Map in the app
Looks like the only thing that the plugin is getting of my theme is the color.
I have defined the TileProvider as:
The text was updated successfully, but these errors were encountered: