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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue