File tree Expand file tree Collapse file tree
pygeoapi/templates/collections/tiles Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 < link rel ="stylesheet " href ="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css " />
1010 < script src ="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.js "> </ script >
1111 < 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 >
1812{% endblock %}
1913
2014{% block body %}
@@ -144,12 +138,6 @@ <h3>Tiles</h3>
144138
145139 var tilesPbfLayer = L . vectorGrid . protobuf ( url , VectorTileOptions )
146140 . 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-
153141 clearHighlight ( ) ;
154142 highlight = e . layer . properties . id || e . layer . properties . fid || e . layer . properties . uri ;
155143 tilesPbfLayer . setFeatureStyle ( highlight , {
You can’t perform that action at this time.
0 commit comments