mapbox / mapbox-studio-classic

https://www.mapbox.com/mapbox-studio/
BSD 3-Clause "New" or "Revised" License
1.14k stars 229 forks source link

Refreshing a source should re-fetch the TileJSON #113

Open mojodna opened 10 years ago

mojodna commented 10 years ago

We've been re-ordering layers and changing zoom level availability without changing the source's URL. Refreshing the source deletes the cached data but not does currently update the metadata

Workaround: creating a newer source with %3Fv%3D2 (?v=2) appended and distinguish between it and prior versions by URL. It works, but it's not ideal.

aaronpdennis commented 9 years ago

I think this is an issue I've run into several times. If I try to change the order or rename a layer for a custom source I am currently working with in a style, I don't see those changes reflected in the layers panel of the style editor. Clicking refresh for the remote source doesn't help. I find that I instead have to create an entirely new style project, reference the sources as I was doing, and copy over my CartoCSS.

The layers do seem to eventually update, fixing the issue, after I've tried restarting Mapbox Studio, re-uploading the source, and changing the style sources multiple times. I can't say if there's a particular thing I do that updates the layers.