fix marker duplication bug when editing a newly added place
This commit is contained in:
parent
a0b1e0eab4
commit
8fc5297f39
4 changed files with 34 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue