You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using tilemaker to create contour tiles. I process some DEM data and use gdal to create shp contours. Each contour line has an elevation attribute. I want to show different contour lines on different zoom levels to reduce the tile size, eg.:
zoom 11: 50 m intervals
zoom 12: 20 m intervals
zoom 13: 10 m intervals
zoom 14: 5 m intervals
Based on the documentation in the Shapefiles and GeoJSON section, this should be possible with a following attribute_function():
Unfortunately, this doesn't work. It seems that the _minzoom isn't applied per feature. Instead, the last _minzoom that is set is applied for the whole layer.
The code handling _minzoom is here (for shapefiles):
Hi,
I am using tilemaker to create contour tiles. I process some DEM data and use gdal to create shp contours. Each contour line has an
elevation
attribute. I want to show different contour lines on different zoom levels to reduce the tile size, eg.:zoom 11: 50 m intervals
zoom 12: 20 m intervals
zoom 13: 10 m intervals
zoom 14: 5 m intervals
Based on the documentation in the Shapefiles and GeoJSON section, this should be possible with a following
attribute_function()
:This is my
config.json
file for reference.Unfortunately, this doesn't work. It seems that the
_minzoom
isn't applied per feature. Instead, the last_minzoom
that is set is applied for the whole layer.The code handling
_minzoom
is here (for shapefiles):tilemaker/src/shp_processor.cpp
Lines 72 to 74 in 13b841d
Am I missing something here or is it not working as expected?
Thanks for any input,
Patrik
The text was updated successfully, but these errors were encountered: