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

@ -41,6 +41,13 @@ Ox.MapPlace = function(options) {
Ox.forEach(options, function(val, key) {
that[key] = val;
});
// Ensure editable is set for existing places that might not have this property
if (that.editable === undefined) {
that.editable = true;
}
console.log('MAPPLACE CONSTRUCTOR - Creating place with ID:', that.id, 'name:', that.name);
update();