Skip to content

Commit 0c9ae20

Browse files
author
Andy Townsend
committed
Display the website along with the name on
`amenity=charging_station` at high zooms.
1 parent 4f29fcb commit 0c9ae20

File tree

3 files changed

+119
-4
lines changed

3 files changed

+119
-4
lines changed

resources/changelog_svwd01.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
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+
## 28/03/2025
6+
Display the `website` along with the `name` on `amenity=charging_station` at high zooms.
7+
8+
## 26/03/2025
69
Show `highway=toll_gantry` via `barrier=toll_gantry`.
710

8-
## 23/0302025
11+
## 23/03/02025
912
Display `highway=elevator` with names if present.
1013
Added a "whatpub" button to the `svwd01` default map.
1114

resources/svwd01_style.json

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13772,7 +13772,6 @@
1377213772
"amenity_fuel_h",
1377313773
"amenity_fuel_l",
1377413774
"amenity_fuel_w",
13775-
"amenity_charging_station",
1377613775
"amenity_boatyard",
1377713776
"amenity_veterinary",
1377813777
"amenity_animal_boarding",
@@ -13800,6 +13799,63 @@
1380013799
"text-halo-width": 1
1380113800
}
1380213801
},
13802+
{
13803+
"id": "land1-nameele-purple-imagename-16-20",
13804+
"type": "symbol",
13805+
"source": "someoneelse",
13806+
"source-layer": "land1",
13807+
"minzoom": 16,
13808+
"maxzoom": 20,
13809+
"filter": [ "all", [ "in", "class", "amenity_charging_station" ] ],
13810+
"layout": {
13811+
"icon-image": "{class}",
13812+
"text-anchor": "top",
13813+
"text-field": "{name}\n",
13814+
"text-font": [
13815+
"KlokanTech Noto Sans Regular"
13816+
],
13817+
"text-max-width": 13,
13818+
"text-offset": [ 0, 0.6 ],
13819+
"text-optional": true,
13820+
"text-padding": 2,
13821+
"text-size": { "stops": [ [ 12, 10 ], [ 20, 30 ] ] },
13822+
"visibility": "visible"
13823+
},
13824+
"paint": {
13825+
"text-color": "#939",
13826+
"text-halo-blur": 0.5,
13827+
"text-halo-color": "#ffffff",
13828+
"text-halo-width": 1
13829+
}
13830+
},
13831+
{
13832+
"id": "land1-nameele-purple-imagenameoverlap-20",
13833+
"type": "symbol",
13834+
"source": "someoneelse",
13835+
"source-layer": "land1",
13836+
"minzoom": 20,
13837+
"filter": [ "all", [ "in", "class", "amenity_charging_station" ] ],
13838+
"layout": {
13839+
"icon-image": "{class}",
13840+
"icon-allow-overlap": true,
13841+
"text-anchor": "top",
13842+
"text-field": "{ele}\n",
13843+
"text-font": [
13844+
"KlokanTech Noto Sans Regular"
13845+
],
13846+
"text-max-width": 13,
13847+
"text-offset": [ 0, 0.6 ],
13848+
"text-padding": 2,
13849+
"text-size": { "stops": [ [ 12, 10 ], [ 20, 30 ] ] },
13850+
"visibility": "visible"
13851+
},
13852+
"paint": {
13853+
"text-color": "#939",
13854+
"text-halo-blur": 0.5,
13855+
"text-halo-color": "#ffffff",
13856+
"text-halo-width": 1
13857+
}
13858+
},
1380313859
{
1380413860
"id": "land1-various-purple-imagename-centroid-16",
1380513861
"type": "symbol",

resources/svwd06_style.json

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13772,7 +13772,6 @@
1377213772
"amenity_fuel_h",
1377313773
"amenity_fuel_l",
1377413774
"amenity_fuel_w",
13775-
"amenity_charging_station",
1377613775
"amenity_boatyard",
1377713776
"amenity_veterinary",
1377813777
"amenity_animal_boarding",
@@ -13800,6 +13799,63 @@
1380013799
"text-halo-width": 1
1380113800
}
1380213801
},
13802+
{
13803+
"id": "land1-nameele-purple-imagename-16-20",
13804+
"type": "symbol",
13805+
"source": "someoneelse",
13806+
"source-layer": "land1",
13807+
"minzoom": 16,
13808+
"maxzoom": 20,
13809+
"filter": [ "all", [ "in", "class", "amenity_charging_station" ] ],
13810+
"layout": {
13811+
"icon-image": "{class}",
13812+
"text-anchor": "top",
13813+
"text-field": "{name}\n",
13814+
"text-font": [
13815+
"KlokanTech Noto Sans Regular"
13816+
],
13817+
"text-max-width": 13,
13818+
"text-offset": [ 0, 0.6 ],
13819+
"text-optional": true,
13820+
"text-padding": 2,
13821+
"text-size": { "stops": [ [ 12, 10 ], [ 20, 30 ] ] },
13822+
"visibility": "visible"
13823+
},
13824+
"paint": {
13825+
"text-color": "#939",
13826+
"text-halo-blur": 0.5,
13827+
"text-halo-color": "#ffffff",
13828+
"text-halo-width": 1
13829+
}
13830+
},
13831+
{
13832+
"id": "land1-nameele-purple-imagenameoverlap-20",
13833+
"type": "symbol",
13834+
"source": "someoneelse",
13835+
"source-layer": "land1",
13836+
"minzoom": 20,
13837+
"filter": [ "all", [ "in", "class", "amenity_charging_station" ] ],
13838+
"layout": {
13839+
"icon-image": "{class}",
13840+
"icon-allow-overlap": true,
13841+
"text-anchor": "top",
13842+
"text-field": "{ele}\n",
13843+
"text-font": [
13844+
"KlokanTech Noto Sans Regular"
13845+
],
13846+
"text-max-width": 13,
13847+
"text-offset": [ 0, 0.6 ],
13848+
"text-padding": 2,
13849+
"text-size": { "stops": [ [ 12, 10 ], [ 20, 30 ] ] },
13850+
"visibility": "visible"
13851+
},
13852+
"paint": {
13853+
"text-color": "#939",
13854+
"text-halo-blur": 0.5,
13855+
"text-halo-color": "#ffffff",
13856+
"text-halo-width": 1
13857+
}
13858+
},
1380313859
{
1380413860
"id": "land1-various-purple-imagename-centroid-16",
1380513861
"type": "symbol",

0 commit comments

Comments
 (0)