mapbox/tilemill — Issue #956: Per-zoom datasources
Author: IvanSanchez
Created: 2011-11-28 09:44:51+00:00
State: open

Wishlist item.

It would be nice to have some way to activate/deactuvate datasources based on zoom level. I mean, a way cleaner than writing Carto zoom filters for every datasource ID. That way is cumbersome when you have 4+ layers generalised three times (OSM coastline, and imposm's motorways, mainroads, minorroads and railroads).

An idea would be to add a zoom slider to the datasource pop-up, then the user would add several layers with the same ID, or the same classes.

Another idea would be to pass the zoom level into the PostgreSQL query, allowing writing complex SQL queries that would fetch data from one table or another based on WHERE clauses.