debugging...

This commit is contained in:
rolux 2011-06-01 16:16:48 +02:00
parent 1d704ce9fd
commit 862f097e24

View file

@ -39,16 +39,6 @@ Ox.MapMarker = function(options) {
100000000000000: 22 // 10,000 x 10,000 km 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) { Ox.forEach(options, function(val, key) {
that[key] = val; that[key] = val;
}); });
@ -167,6 +157,15 @@ Ox.MapMarker = function(options) {
// after setting draggable from true to false (google maps bug) // after setting draggable from true to false (google maps bug)
var fix = that.marker.getDraggable() && !that.place.editing; var fix = that.marker.getDraggable() && !that.place.editing;
//Ox.print('setOptions, that.color', that.color) //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({ that.marker.setOptions({
// fixme: cursor remains pointer // fixme: cursor remains pointer
cursor: that.place.editing ? 'move' : 'pointer', cursor: that.place.editing ? 'move' : 'pointer',