tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.11k stars 527 forks source link

Choose layer to display in TileMill #2331

Open kpottermn opened 10 years ago

kpottermn commented 10 years ago

I'm completely new to TileMill, so please excuse my ignorance and any easy solutions I've missed. I'm working on a map of local fire responses and response times, and I'd like to be able to switch between layers (displaying one at a time), like this map -- http://graphics.latimes.com/how-fast-is-lafd/#10/34.0504/-118.6002

From what I gather, this isn't something that TileMill can do on the front end. Am I missing something? Or is there a good work around?

stevage commented 10 years ago

You create a new map (a new project) for each of the layers in the selector box. So in this example, you have 7 projects - each layer in leaflet points to a different one. The bottom one (LAFD fire stations) is an overlay, so you typically create it with a transparent background.

TileMill is used for making the maps, but you use something like Leaflet, or CartoDB to create the webpage that the user sees.

Btw, this is the place to report bugs with TileMill - for support, try MapBox's help page: https://www.mapbox.com/help/ .