From 862f097e2480239b0e05e783ea692dc319c5749d Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 1 Jun 2011 16:16:48 +0200 Subject: [PATCH] debugging... --- source/Ox.UI/js/Map/Ox.MapMarker.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/source/Ox.UI/js/Map/Ox.MapMarker.js b/source/Ox.UI/js/Map/Ox.MapMarker.js index 9d6bbfa2..af1cc489 100644 --- a/source/Ox.UI/js/Map/Ox.MapMarker.js +++ b/source/Ox.UI/js/Map/Ox.MapMarker.js @@ -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',