mapbox / carto

fast CSS-like map stylesheets
https://cartocss.readthedocs.io/
Apache License 2.0
652 stars 129 forks source link

Flipped min/max zoom #385

Closed springmeyer closed 8 years ago

springmeyer commented 9 years ago

Just noticed https://github.com/mapbox/carto/commit/7deb1b86e060efee5ec358712683ec505542efa0#diff-d611a4d39a7dcd1c7e873eb1cec68bceR12, which looks odd. Clearly this is working correctly, but it looks mismatched. So I wonder if this is working because min/max are being interpreted incorrectly somewhere else in the stack.

nebulon42 commented 8 years ago

Isn't this because zoom level and scale denominator are inverse proportional as this table shows?

So if you want to set minzoom=9 you have to set maxscaledenominator=1100000 (example value).

nebulon42 commented 8 years ago

I think this can be safely closed as per my comment above.