geoencoding searhc

This commit is contained in:
2023-11-11 19:16:05 +01:00
parent 5d70b58fa7
commit 552da4c577
2 changed files with 12 additions and 6 deletions

7
web/js/geosearch.js Normal file
View File

@@ -0,0 +1,7 @@
mapboxgl.accessToken = 'pk.eyJ1IjoidmFsY3plODAiLCJhIjoiY2xpY2FhOTM5MGxwczNrdGV6a2J1Z2Q4diJ9.I_WRpX1aO4z32ajcE2Ef7A';
const geocoder = new MapboxGeocoder({
accessToken: mapboxgl.accessToken,
types: 'country,region,place,postcode,locality,neighborhood'
});
geocoder.addTo('#placeUpdateInput');