forked from 0x2620/oxjs
fix a bug where selecting a not-yet-loaded place on a list map would not pan but zoom to that place
This commit is contained in:
parent
02838540db
commit
7eb73dd4fb
3 changed files with 9 additions and 7 deletions
|
|
@ -185,7 +185,7 @@ Ox.MapMarker = function(options) {
|
|||
// workaround to prevent marker from appearing twice
|
||||
// after setting draggable from true to false (google maps bug)
|
||||
var fix = that.marker.getDraggable() && !that.place.editing;
|
||||
Ox.print('setOptions, that.map: ', that.map)
|
||||
//Ox.print('setOptions, that.map: ', that.map)
|
||||
if (that.map.options('showTypes')) {
|
||||
that.color = typeColor[that.place.type];
|
||||
that.size = 8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue