Skip to content

Commit 6158ed5

Browse files
authored
OATiles: remove popup and id_field (#2066)
* OATiles: remove popup for HTML templating and id_field * keep id_field in docs
1 parent e8aef58 commit 6158ed5

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pygeoapi/templates/collections/tiles/index.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
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, {

0 commit comments

Comments
 (0)