pick nominatim result as per zoom level, sending current zoom as part of nominatim request

This commit is contained in:
Sanjay Bhangar 2025-08-11 18:14:51 +02:00
commit 905258c962
2 changed files with 25 additions and 24 deletions

View file

@ -10,6 +10,7 @@ Ox.load(['UI', 'Geo'], function() {
var $map = Ox.MapEditor({
addPlace: function(place, callback) {
place.id = Ox.encodeBase26((places.length ? Ox.max(places.map(p => Ox.decodeBase26(p.id))) : 0) + 1)
place.editable = true;
console.log("addPlace", place.id, place)
places.push(place)
$storage("places", places)