File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
pygeoapi/templates/collections/tiles Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 9
9
< link rel ="stylesheet " href ="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css " />
10
10
< script src ="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.js "> </ script >
11
11
< script src ="https://unpkg.com/leaflet.vectorgrid@latest/dist/Leaflet.VectorGrid.bundled.js "> </ script >
12
- < style >
13
- .leaflet-popup-content {
14
- width : 200px ;
15
- height : 100px ;
16
- }
17
- </ style >
18
12
{% endblock %}
19
13
20
14
{% block body %}
@@ -144,12 +138,6 @@ <h3>Tiles</h3>
144
138
145
139
var tilesPbfLayer = L . vectorGrid . protobuf ( url , VectorTileOptions )
146
140
. on ( 'click' , function ( e ) { // The .on method attaches an event handler
147
- L . popup ( )
148
- . setContent ( "<b>Name</b>: " + e . layer . properties . name +
149
- "<br><b>Class</b>: " + e . layer . properties . featureclass )
150
- . setLatLng ( e . latlng )
151
- . openOn ( map ) ;
152
-
153
141
clearHighlight ( ) ;
154
142
highlight = e . layer . properties . id || e . layer . properties . fid || e . layer . properties . uri ;
155
143
tilesPbfLayer . setFeatureStyle ( highlight , {
You can’t perform that action at this time.
0 commit comments