From e78486b4f18e9e6389c18029b5eb624446f9888f Mon Sep 17 00:00:00 2001 From: ardhi Date: Tue, 14 Feb 2023 01:36:41 +0700 Subject: [PATCH] add searching location using nominatim openstreetmap on Activity Location and fix set buffer radius --- edit-mode/function/activityLocation.js | 3 +++ edit-mode/index.html | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/edit-mode/function/activityLocation.js b/edit-mode/function/activityLocation.js index 742ef24..cd8f394 100644 --- a/edit-mode/function/activityLocation.js +++ b/edit-mode/function/activityLocation.js @@ -40,6 +40,9 @@ var drawnControlEdit = new L.Control.Draw({ map.addControl(drawControl); +// add searching location (nominatim) on map +L.Control.geocoder().addTo(map); + function openActivityMap(id) { currentIdAct = id; diff --git a/edit-mode/index.html b/edit-mode/index.html index 232c758..dfe1a13 100644 --- a/edit-mode/index.html +++ b/edit-mode/index.html @@ -30,6 +30,7 @@ +