Comments (7)
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
- This library only supports web URL schemes, i.e.
https
andhttp
- it looks like you're usingmapbox:
- This library expects an URL template to point to tiles directly
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: https://api.mapbox.com/v4/mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2.json?secure&access_token=
Looking at the response, you can find how the tiles are loaded, in this case https://a.tiles.mapbox.com/v4/mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2/{z}/{x}/{y}.vector.pbf?access_token=...
It's this last URL that you want to use with this library.
from flutter-vector-map-tiles.
Thanks for the quick response. I've tried with this link, but nothing have changed.
from flutter-vector-map-tiles.
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 2.1.2
to see if that resolves the issue for you.
from flutter-vector-map-tiles.
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.
from flutter-vector-map-tiles.
@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:
from flutter-vector-map-tiles.
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.
from flutter-vector-map-tiles.
@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: https://api.mapbox.com/styles/v1/greensopinion/cl5oh4q3t000216o0tc9cngxh?access_token=$mapboxApiKey
You'll also need to publish your custom theme (so that it's available in production on mapbox)
See 5161457 which demonstrates how to use a custom theme.
why is this issue still being held as closed while clearly the problem is not resolved
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.
from flutter-vector-map-tiles.
Related Issues (20)
- Differences in Styles for Mapbox.
- Update flutter_map dependency to 6.1.x HOT 4
- Web support HOT 1
- Question about working with tile server.
- [StyleReader] Converting JSON into a Style HOT 7
- DEpendency problems when upgrading to 6.0.2 HOT 2
- display with rotation is not the same between vector and raster modes in version 7.0.0 HOT 3
- is expressmaps supported? HOT 1
- Package available for web? HOT 2
- Raster Tiles Usage HOT 1
- would something like https://github.com/fleaflet/flutter_map_cancellable_tile_provider help in performance HOT 1
- very low performance HOT 1
- Override background color of VectorTileLayer HOT 1
- Google maps support - Issue HOT 3
- Can't display pg_tileserv and postgis tiles HOT 1
- How to rotate and zoom the map like a native map experience
- Raster mode tile cancellation HOT 1
- new version available HOT 2
- providers.isNotEmpty error
- Blurred and Overly-Shadowed Sprites
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-vector-map-tiles.