File tree 2 files changed +29
-2
lines changed
Configuration/blue-bin-delivery
2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 18
18
layer . bindPopup ( content )
19
19
}
20
20
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 }
Original file line number Diff line number Diff line change 1
1
import Leaflet from 'leaflet'
2
- import { } from './Popups'
2
+ import { wardPopup } from './Popups'
3
3
import { } from './Styles'
4
4
5
5
const Configuration = {
@@ -63,7 +63,20 @@ const Configuration = {
63
63
}
64
64
}
65
65
} ,
66
+
67
+
66
68
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
67
80
}
68
81
69
82
]
You can’t perform that action at this time.
0 commit comments