-
Notifications
You must be signed in to change notification settings - Fork 66
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
Custom Mapbox styles don't apply #65
Comments
I've had a look at your example and there are a couple of issues here: https://github.com/alkaitagi/vector_map_test/blob/master/lib/mapbox.dart#L22-L27
For example if you go to https://www.mapbox.com/maps/streets and tap on "Preview", you'll see a map come up. If you check how the map was loaded, you'll find that it loads a URI that looks like this: |
Thanks for the quick response. I've tried with this link, but nothing have changed. |
There was a bug introduced a few days ago, since fixed, that prevented some themes from working. You may want to try the latest version |
I have updated the package and once again checked the URL. I see only see default style without my customization. No errors shows up on the console. I think you were too early to close this issue since the problem is not resolved. |
@alkaitagi I've created an example that uses mapbox. Let me know if that makes a difference for you. https://github.com/greensopinion/flutter-vector-map-tiles/tree/mapbox-example This is the commit with the relevant changes: 00cdb61 This is what it looks like: |
No, this still doesn't work for custom styles created with Mapbox Studio. It only applies the default theme (dark) instead of my own theme based off it, like it is described in the original post on this issue. No errors are present in the console. I suggest you create your own theme (e.g. change country borders from solid to dashed) and try making that work. Also, believe me I appreciate your communication and intention to help, but why is this issue still being held as closed while clearly the problem is not resolved. |
@alkaitagi I've had a go with a custom theme, I made the streets red. Here's the result: To get that to work you will need to get the style using an URL that looks something like this: See 5161457 which demonstrates how to use a custom theme.
The issue is still closed because it looks like there isn't a problem with this library. I'm happy to reopen it if there's clearly a problem, but in this case there has been a lack of data pointing to a problem. |
I've tried to use the plugin with custom styles which I've created in Mapbox Studio and then downloaded as
.json
s. Unfortunately, this plugin doesn't seem to apply the styles as the map displays with the default Mapbox Light and Dark (i.e. not dimming texts and borders like I've specified in my styles).For references, this is how my custom light map should look:
![image](https://user-images.githubusercontent.com/32439229/176758447-96bcfd23-ca19-4017-9589-49492bb4b656.png)
I've made a minimal repo to demo the issue: https://github.com/alkaitagi/vector_map_test/tree/master/lib. I'll appreciate any help.
The text was updated successfully, but these errors were encountered: