diff --git a/src/main/webapp/lib.js b/src/main/webapp/lib.js
index 76ff08e..c314bf1 100644
--- a/src/main/webapp/lib.js
+++ b/src/main/webapp/lib.js
@@ -47,9 +47,21 @@ const lib = new function () {
const contextmenu = new maplibregl.Popup()
.setLngLat(coordinates)
- .setHTML('')
+ .setHTML('')
.addTo(map);
+ let featbtn = document.getElementById("btn-feat");
+ featbtn.onclick = function () {
+ contextmenu.remove();
+ const features = map.queryRenderedFeatures(e.point);
+ const prop = features.map(function (feat) {
+ return feat["properties"];
+ });
+ const featPopup = new maplibregl.Popup()
+ .setLngLat(coordinates)
+ .setHTML(JSON.stringify(prop))
+ .addTo(map);
+ };
let startbtn = document.getElementById("btn-start");
startbtn.onclick = function () {
contextmenu.remove();