Skip to content

Commit 9b8ef86

Browse files
author
Jaime Scowcroft
committed
blue bin ward boundaries
1 parent caff65c commit 9b8ef86

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

Configuration/blue-bin-delivery/Popups/index.js

+15-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,18 @@
1818
layer.bindPopup(content)
1919
}
2020

21-
export {}
21+
const wardPopup = (properties) => {
22+
return `<div class="smbc-map__item">
23+
<div class="smbc-map__item__header__block">
24+
<i class="fas fa-map-marker-alt smbc-map__item__header__block__icon" ></i>
25+
<span class="smbc-map__item__header__block__title">Ward</span>
26+
</div>
27+
<div class="smbc-map__item__body">
28+
<p>Ward: ${properties.ward_name}</p>
29+
</div>
30+
</div>`
31+
32+
layer.bindPopup(content)
33+
}
34+
35+
export {wardPopup}

Configuration/blue-bin-delivery/index.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Leaflet from 'leaflet'
2-
import {} from './Popups'
2+
import {wardPopup} from './Popups'
33
import {} from './Styles'
44

55
const Configuration = {
@@ -63,7 +63,20 @@ const Configuration = {
6363
}
6464
}
6565
},
66+
67+
6668
visibleByDefault: false
69+
},
70+
{
71+
key: 'Wards',
72+
group: 'Political Boundaries',
73+
url: 'wms',
74+
visibleByDefault: true,
75+
layerOptions: {
76+
layers: 'political:ward',
77+
popup: wardPopup,
78+
},
79+
visibleByDefault: true
6780
}
6881

6982
]

0 commit comments

Comments
 (0)