From 5e14b3c06ac451f2c9b4568ce85881dbe00d4b99 Mon Sep 17 00:00:00 2001 From: naoki Date: Fri, 8 Jul 2022 14:08:20 +0900 Subject: [PATCH] add subrub --- layers/place-island-name.yml | 1 + layers/place-suburb.yml | 33 +++++++++++++++++++++++++++++++++ style.yml | 3 ++- 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 layers/place-suburb.yml diff --git a/layers/place-island-name.yml b/layers/place-island-name.yml index c8cc7ee..d778f31 100644 --- a/layers/place-island-name.yml +++ b/layers/place-island-name.yml @@ -2,6 +2,7 @@ id: place-island-name type: symbol source: geolonia source-layer: place +minzoom: 13 filter: - all - - '==' diff --git a/layers/place-suburb.yml b/layers/place-suburb.yml new file mode 100644 index 0000000..910c154 --- /dev/null +++ b/layers/place-suburb.yml @@ -0,0 +1,33 @@ +id: place-suburb +type: symbol +source: geolonia +source-layer: place +minzoom: 11 +maxzoom: 15 +filter: + - all + - - '==' + - class + - suburb + - - '!=' + - disputed + - japan_northern_territories +layout: + text-font: + - Noto Sans Universal Regular + text-size: + - interpolate + - - linear + - - zoom + - 11 + - 10 + - 15 + - 16 + text-field: ['upcase', ['get', 'name']] + text-letter-spacing: 0.2 + visibility: visible +paint: + text-color: '#888888' + text-halo-width: 2 + text-halo-blur: 1 + text-halo-color: rgba(255,255,255,1) diff --git a/style.yml b/style.yml index ec8ef00..58eb3b1 100644 --- a/style.yml +++ b/style.yml @@ -159,9 +159,10 @@ layers: - !!inc/file layers/road_shield_highway.yml - !!inc/file layers/nt-label-small.yml - !!inc/file layers/nt-label-large.yml + - !!inc/file layers/place-island-name.yml + - !!inc/file layers/place-suburb.yml - !!inc/file layers/place-village.yml - !!inc/file layers/place-town.yml - - !!inc/file layers/place-island-name.yml - !!inc/file layers/place-city-rank10.yml - !!inc/file layers/place-city-rank9.yml - !!inc/file layers/place-city-rank8.yml