Water Polygons display #525
Replies: 3 comments 4 replies
-
Shapefile data is processed according to the layers you specify in the JSON file, and (if you supply one) tilemaker takes the bounding box from the .osm.pbf file, and gives you an .mbtiles which covers that area. If you want a bigger area - e.g. you want to have coastline data for the rest of the world - then you can change the bounding box with the If you want to generate just (say) tiles up to z6 for the whole world, but tiles up to z14 for New Zealand, then you could do that by running tilemaker once to generate the ocean tiles with appropriate json/lua config, then using |
Beta Was this translation helpful? Give feedback.
-
Thanks The attribute_function(attr,layer) takes 2 arguments:
How does it then work? Is it called each time a shapefile is referenced in the config file, and the OR Is it supposed to be called in the process.lua (within But then, in any case, what about the I might be missing some documentation, or not looking at the right place ? My initial goal is to generate NZ up to zoom 14 and the entire world at a lower zoom level (something similar to what's provided by openmaptiles on their website) |
Beta Was this translation helpful? Give feedback.
-
Sorry for my late feedback, I've been away the last 2 weeks. And I confirm now everything works as expected! |
Beta Was this translation helpful? Give feedback.
-
Hi Richard and co,
For the first time I'd now like to integrate the water polygons. The README is clear, and according to tilemaker logs everything has been correctly generated. I've kept the config
"ocean":{ "minzoom": 0, "maxzoom": 14, "source": "coastline/water_polygons.shp", "simplify_below": 13, "simplify_level": 0.0001, "simplify_ratio": 2, "write_to": "water", "index": true }
and I do have a "water" layer filled.
I'd like to understand which tags the shapefile is holding and how it got filled into the layer
ocean
- is there some code that should stand in the process.lua ? Is this processed via theattribute_function
? I don't see anyway:Layer("ocean")
in any example, such as process-example, nor process-openmaptiles. I'm just trying to find out:I'm using maplibre-gl, and I have the following style
but my map doesn't display anything beyond my pbf source (New Zealand extract) while I would have expected the rest of the map to be blue, and the coastlines for each countries.
Curious what I'm doing wrong...
Thanks in advance for your support!
Ben
Beta Was this translation helpful? Give feedback.
All reactions