* Use different OSM tags as source for subclass in special cases
For tourism=information, amenity=place_of_worship and leisure=pitch,
class should contain information/place_of_worship/pitch and subclass
should contain the value of a special OSM tag
(information/religion/sport).
* Add attribute layer, level and indoor to poi layer
* Add support for a z_order field and sort output objects by z_order
PostGIS import tools like Osm2pgsql and Imposm can write a z_order field
to the database table in order to allow map styles to render features
ordered by road class and vertical layer. Tilemaker now gets a Lua
callback to set the z_order for an OSM object (default 0) and will sort
the vectortile features by z_order. z_order is also taken into account
for combining of features. z_order values are limited to 1-byte unsigned
integer.
* Document new ZOrder callback function
* Drop unnecessary variable
* Implement z_order sorting for the OpenMapTiles example config
This commit also adapts the minimum zoom levels to the lastest version.
1. Exclude small buildings from z13
2. Change SetMinZoomByArea(), now it affects to z14
Though 'building' layer, landcover' layer and 'water' layer in
OpenMapTiles filter lower zoom levels by area with "a little different"
rules, but I thinks it is fine to apply SetMinZoomByArea() on all of
them.
- landuse
all -> z14
area>power(ZRES11,2) -> z13
area>power(ZRES10,2) -> z12
⋮
area>power(ZRES6,2) -> z7
area>power(ZRES6,2) -> z6
- building
all -> z14
area>power(ZRES12,2) -> z13
- water
all -> z12 z13 z14
area>power(ZRES10,2) -> z11
area>power(ZRES9,2) -> z10
⋮
area>power(ZRES5,2) -> z6
- Add class, which is necessary in some style like openmaptiles-topo
- Include natural=volcano into mountain_peak
- Floor elevation as Interger, or some terrible thing would happen...
Make layers of water* more consistent with openmaptiles v3.11
Of course it is not one-to-one mapping, openmaptiles uses area to filter
out small water-body in lower zoom levels, but we cannot.
waterway:
- Removed from z8
- Only include waterway=river with name in z9-z11
Also, do simplification below z12
water:
- Removed from z8
- Do simplification below z12
water_name:
- Removed from z8
- Put waterway=dock, natural=water, natural=bay or landuse=reservoir
into z12 and above(originally only appears in z14)
Make layers of transportation more consistent with openmaptiles v3.11
transportation:
- Only include highway=motorway, trunk, primary in z8
- Only include highway=secondary, above and *_link in z9-z10
- Only include highway=tertiary, above and *_link in z11-z12
transportation_name:
- Only include highway=motorway, trunk in z8-z11
- Put other features(which are not in z14) in z12-z13