@@ -808,13 +808,24 @@ post_process:
808
808
- name
809
809
where : >-
810
810
(kind == 'sea' and zoom < 4) or
811
+ (kind == 'bay' and zoom < 5) or
812
+ (kind == 'fjord' and zoom < 5) or
813
+ (kind == 'strait' and zoom < 5) or
811
814
(kind == 'lake' and zoom < 5) or
815
+ (kind == 'playa' and zoom < 6) or
816
+ (kind == 'reef' and zoom < 6) or
812
817
(kind == 'river' and zoom < 12) or
818
+ (kind == 'riverbank' and zoom < 12) or
819
+ (kind == 'water' and zoom < 12) or
813
820
(kind == 'canal' and zoom < 13) or
821
+ (kind == 'basin' and zoom < 13) or
822
+ (kind == 'dock' and zoom < 13) or
814
823
(kind == 'dam' and zoom < 14) or
815
824
(kind == 'stream' and zoom < 14) or
816
825
(kind == 'ditch' and zoom < 15) or
817
826
(kind == 'drain' and zoom < 15) or
827
+ (kind == 'swimming_pool' and zoom < 15) or
828
+ (kind == 'fountain' and zoom < 15) or
818
829
(properties is not None and properties.get('is_tunnel') is True)
819
830
820
831
- fn : vectordatasource.transform.handle_label_placement
@@ -863,40 +874,40 @@ post_process:
863
874
(16, None),
864
875
] if area >= area_threshold][0]
865
876
where : >-
866
- kind in ['lake','bay','water','riverbank','reservoir'] and label_placement
877
+ (properties is not None and properties.get(' label_placement') is True)
867
878
868
879
# now that we have the label points
869
880
# drop most water properties at lower zooms
870
881
# this is for lines and polygons
871
882
- fn : vectordatasource.transform.drop_properties
872
883
params :
873
884
source_layer : water
874
- start_zoom : 8
885
+ start_zoom : 0
875
886
end_zoom : 15
887
+ geom_types : [LineString, MultiLineString, Polygon, MultiPolygon]
876
888
properties :
877
889
- id
878
890
- area
891
+ - boundary
879
892
- layer
880
893
- wikidata_id
894
+ - osm_relation
881
895
- kind_tile_rank
882
- - label_placement
883
- where : >-
884
- geom_type in ('LineString', 'MultiLineString', 'Polygon', 'MultiPolygon')
885
896
886
897
# now that we have the label points
887
898
# drop water names at lower zooms for polys only
888
899
- fn : vectordatasource.transform.drop_properties
889
900
params :
890
901
source_layer : water
891
- start_zoom : 8
902
+ start_zoom : 0
892
903
end_zoom : 15
904
+ geom_types : [Polygon, MultiPolygon]
893
905
# short-hand for "name" property in the list below means all name-like
894
906
# properties.
895
907
all_name_variants : true
896
908
properties :
897
909
- name
898
- where : >-
899
- geom_type in ('Polygon', 'MultiPolygon')
910
+ - old_name
900
911
901
912
- fn : vectordatasource.transform.handle_label_placement
902
913
params :
0 commit comments