pick nominatim result as per zoom level, sending current zoom as part of nominatim request
This commit is contained in:
parent
d737817528
commit
905258c962
2 changed files with 25 additions and 24 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue