fix marker duplication bug when editing a newly added place

This commit is contained in:
Sanjay Bhangar 2025-08-09 17:11:18 +02:00
commit 8fc5297f39
4 changed files with 34 additions and 1 deletions

View file

@ -306,7 +306,9 @@ Ox.MapMarker = function(options) {
() -> <f> edit marker, returns MapMarker
@*/
that.edit = function() {
console.log('MAPMARKER.EDIT - before setOptions, marker on map?', that.marker._map !== null);
setOptions();
console.log('MAPMARKER.EDIT - after setOptions, marker on map?', that.marker._map !== null);
that.marker.on('dragstart', dragstart);
that.marker.on('drag', drag);
that.marker.on('dragend', dragend);