Skip to content

Commit 5e01133

Browse files
author
Andy Townsend
committed
Handle "penguin" artwork separately
to allow a different icon to be shown.
1 parent 818b461 commit 5e01133

11 files changed

+2174
-1960
lines changed

resources/changelog_svwd01.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
See also the [changelog](https://github.com/SomeoneElseOSM/SomeoneElse-vector-web-display/blob/main/changelog.md) for the scripts here.
33
Except as noted, all changes also apply to the [SVWD06 Android native display style](https://github.com/SomeoneElseOSM/SomeoneElse-vector-web-display/blob/main/resources/README_svwd06.md).
44

5-
## As yet unreleased
5+
## 09/10/2025
66
Show sanitary dump stations with a unique icon.
77
Show `man_made=charging_point` with a unique icon, analagous to `fuel_pump`.
8+
Show a different icon for "penguin" artwork at high zooms.
89

910
## 02/10/2025
1011
Don't show parking spaces at low zooms.

resources/changelog_svwd08.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Changes made to the [SVWD08 web display style](https://github.com/SomeoneElseOSM/SomeoneElse-vector-web-display/blob/main/resources/README_svwd08.md).
22

3-
## As yet unreleased
3+
## 09/10/2025
44
Show sanitary dump stations with a unique icon.
55
Show `man_made=charging_point` with a unique icon, analagous to `fuel_pump`.
6+
Show a different icon for "penguin" artwork at high zooms.
67

78
## 02/10/2025
89
Don't show parking spaces at low zooms.

resources/svwd01_call_icon_convert.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@
10281028
~/src/SomeoneElse-vector-web-display/svwd_convert_icon_from_raster.sh ~/src/openstreetmap-carto-AJT/symbols/tourism_aquarium.png ~/src/SomeoneElse-vector-web-display/resources/svwd01_icons/tourism_aquarium.png
10291029
~/src/SomeoneElse-vector-web-display/svwd_convert_icon_from_raster.sh ~/src/openstreetmap-carto-AJT/symbols/advertising.png ~/src/SomeoneElse-vector-web-display/resources/svwd01_icons/tourism_advertising_column.png
10301030
~/src/SomeoneElse-vector-web-display/svwd_convert_icon_from_raster.sh ~/src/openstreetmap-carto-AJT/symbols/artwork.p16.png ~/src/SomeoneElse-vector-web-display/resources/svwd01_icons/tourism_artwork.png
1031+
~/src/SomeoneElse-vector-web-display/svwd_convert_icon_from_raster.sh ~/src/openstreetmap-carto-AJT/symbols/penguinartwork.png ~/src/SomeoneElse-vector-web-display/resources/svwd01_icons/tourism_penguinartwork.png
10311032
~/src/SomeoneElse-vector-web-display/svwd_convert_icon_from_raster.sh ~/src/openstreetmap-carto-AJT/symbols/motel.p.20.png ~/src/SomeoneElse-vector-web-display/resources/svwd01_icons/tourism_motel.png
10321033
~/src/SomeoneElse-vector-web-display/svwd_convert_icon_from_raster.sh ~/src/openstreetmap-carto-AJT/symbols/hotel2.p.20.png ~/src/SomeoneElse-vector-web-display/resources/svwd01_icons/tourism_hotel.png
10331034
~/src/SomeoneElse-vector-web-display/svwd_convert_icon_from_raster.sh ~/src/openstreetmap-carto-AJT/symbols/tourism_guest_yyyy.png ~/src/SomeoneElse-vector-web-display/resources/svwd01_icons/tourism_hostel.png
1.47 KB
Loading

resources/svwd01_style.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13666,6 +13666,71 @@
1366613666
"text-halo-width": 1
1366713667
}
1366813668
},
13669+
{
13670+
"id": "land1-smallscaled-penguin-imagename-16",
13671+
"type": "symbol",
13672+
"source": "someoneelse",
13673+
"source-layer": "land1",
13674+
"minzoom": 16,
13675+
"maxzoom": 19,
13676+
"filter": [ "all", [ "in", "class", "tourism_penguinartwork" ] ],
13677+
"layout": {
13678+
"icon-image": "tourism_artwork",
13679+
"icon-allow-overlap": true,
13680+
"icon-size": { "stops": [ [ 16, 1.0 ],
13681+
[ 18, 1.0 ],
13682+
[ 22, 2.0 ] ] },
13683+
"text-anchor": "top",
13684+
"text-field": "{name}\n",
13685+
"text-font": [
13686+
"KlokanTech Noto Sans Regular"
13687+
],
13688+
"text-max-width": 13,
13689+
"text-offset": [ 0, 0.6 ],
13690+
"text-optional": true,
13691+
"text-padding": 2,
13692+
"text-size": { "stops": [ [ 12, 10 ], [ 20, 30 ] ] },
13693+
"visibility": "visible"
13694+
},
13695+
"paint": {
13696+
"text-color": "#734a08",
13697+
"text-halo-blur": 0.5,
13698+
"text-halo-color": "#ffffff",
13699+
"text-halo-width": 1
13700+
}
13701+
},
13702+
{
13703+
"id": "land1-smallscaled-penguin-imagename-19",
13704+
"type": "symbol",
13705+
"source": "someoneelse",
13706+
"source-layer": "land1",
13707+
"minzoom": 19,
13708+
"filter": [ "all", [ "in", "class", "tourism_penguinartwork" ] ],
13709+
"layout": {
13710+
"icon-image": "{class}",
13711+
"icon-allow-overlap": true,
13712+
"icon-size": { "stops": [ [ 16, 1.0 ],
13713+
[ 18, 1.0 ],
13714+
[ 22, 2.0 ] ] },
13715+
"text-anchor": "top",
13716+
"text-field": "{name}\n",
13717+
"text-font": [
13718+
"KlokanTech Noto Sans Regular"
13719+
],
13720+
"text-max-width": 13,
13721+
"text-offset": [ 0, 0.6 ],
13722+
"text-optional": true,
13723+
"text-padding": 2,
13724+
"text-size": { "stops": [ [ 12, 10 ], [ 20, 30 ] ] },
13725+
"visibility": "visible"
13726+
},
13727+
"paint": {
13728+
"text-color": "#734a08",
13729+
"text-halo-blur": 0.5,
13730+
"text-halo-color": "#ffffff",
13731+
"text-halo-width": 1
13732+
}
13733+
},
1366913734
{
1367013735
"id": "land1-amenitylightbrown-imagename-17",
1367113736
"type": "symbol",

0 commit comments

Comments
 (0)