debugging...
This commit is contained in:
parent
1d704ce9fd
commit
862f097e24
1 changed files with 9 additions and 10 deletions
|
@ -39,16 +39,6 @@ Ox.MapMarker = function(options) {
|
|||
100000000000000: 22 // 10,000 x 10,000 km
|
||||
};
|
||||
|
||||
if (options.map.options('showTypes')) {
|
||||
options.color = typeColor[options.place.type];
|
||||
options.size = 8;
|
||||
Ox.forEach(areaSize, function(size, area) {
|
||||
if (options.place.area > area) {
|
||||
options.size = size;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Ox.forEach(options, function(val, key) {
|
||||
that[key] = val;
|
||||
});
|
||||
|
@ -167,6 +157,15 @@ Ox.MapMarker = function(options) {
|
|||
// after setting draggable from true to false (google maps bug)
|
||||
var fix = that.marker.getDraggable() && !that.place.editing;
|
||||
//Ox.print('setOptions, that.color', that.color)
|
||||
if (that.map.options('showTypes')) {
|
||||
that.color = typeColor[that.place.type];
|
||||
that.size = 8;
|
||||
Ox.forEach(areaSize, function(size, area) {
|
||||
if (that.place.area > area) {
|
||||
that.size = size;
|
||||
}
|
||||
});
|
||||
}
|
||||
that.marker.setOptions({
|
||||
// fixme: cursor remains pointer
|
||||
cursor: that.place.editing ? 'move' : 'pointer',
|
||||
|
|
Loading…
Reference in a new issue