This commit is contained in:
rolux 2011-06-01 16:27:25 +02:00
parent 862f097e24
commit 021d429398
2 changed files with 5 additions and 6 deletions

View file

@ -156,7 +156,6 @@ 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.color', that.color)
if (that.map.options('showTypes')) {
that.color = typeColor[that.place.type];
that.size = 8;

View file

@ -45,7 +45,7 @@ Ox.MapPlace = function(options) {
update();
function update() {
function update(updateMarker) {
that.points = {
ne: new google.maps.LatLng(that.north, that.east),
sw: new google.maps.LatLng(that.south, that.west)
@ -82,7 +82,7 @@ Ox.MapPlace = function(options) {
map: that.map,
place: that
});
} else {
} else if (updateMarker) {
that.marker.update();
}
}
@ -155,7 +155,7 @@ Ox.MapPlace = function(options) {
Ox.forEach(options, function(value, key) {
that.key = value;
});
update();
update(true);
};
/*@
@ -195,8 +195,8 @@ Ox.MapPlace = function(options) {
/*@
update <f> update
@*/
that.update = function() {
update();
that.update = function(updateMarker) {
update(updateMarker);
that.map.triggerEvent('changeplace', that);
return that;
};