-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
How to change vector tile data in mapbox? #8244
Comments
And I see mapbox/mapbox-gl-style-spec#570 |
@xiaofsu at the moment you can try something like this #3709 (comment) however I am using this "hack" and am sometimes am getting random errors (see #8233). Hopefully #8048 will be what we're after!! |
Currently in use #3709 ,But the screen is still blinking, I don't think this is the reason for the network, because the browser has helped me with the cache. Hope #8048 can help us.😂😂 |
I am going to close this question because I have found the answer I want. I hope that you can also use this method to solve the current problem. |
Use MapBox on the web.
When I first load the vector tile I want to make him reload other vector tiles is still using this layer id.(Can I have a layer request data again?)
And I see #3037
Use addSource and removeSource
Will flash on the screen. This is not good.(I don't quite understand how to solve the problem of flickering in #1989.)
And show/hide them
Will cause the browser to be severely stuck because of the large amount of data
I need to render nearly 20 kinds of data, and they are all 15 days.
It looks like geojson's setData and image's updateImage
Unfortunately, I didn't find a way to change the data in the vector.
So, I want to ask How do I change the request path in the vector and have the MapBox request the resource again and render it to the map.
But I don't know how to implement it, how to get it done.
Or you have a better way, please help me. Thank you
Browser: Chrome 75.0.3770.142
System: windows10
Mapbox-gl-js: 1.1.1
The text was updated successfully, but these errors were encountered: