center popup on point

main
gman 2 years ago
parent addf83357b
commit 409f20f8cc

@ -154,7 +154,7 @@ export default {
// Populate the popup and set its coordinates // Populate the popup and set its coordinates
// based on the feature found. // based on the feature found.
popup popup
.setLngLat(e.lngLat) .setLngLat(e.features[0].geometry.coordinates)
.setHTML(`Записей в точке: <b>${e.features.length}</b>`) .setHTML(`Записей в точке: <b>${e.features.length}</b>`)
.addTo(map.value); .addTo(map.value);
}); });

Loading…
Cancel
Save