1
0
Fork 0
forked from 0x2620/oxjs

correct transparency of result place rectangle and rectangle markers (fixes #312)

This commit is contained in:
rlx 2012-03-07 13:28:45 +00:00
commit 2ed61c7b08
4 changed files with 21 additions and 10 deletions

View file

@ -34,7 +34,8 @@ Ox.MapRectangleMarker = function(options, self) {
draggable: true,
icon: Ox.MapMarkerImage({
mode: 'editing',
type: 'rectangle'
rectangle: true,
type: that.place.id[0] == '_' ? 'result' : 'place'
}),
position: that.place.points[that.position],
raiseOnDrag: false
@ -111,7 +112,12 @@ Ox.MapRectangleMarker = function(options, self) {
@*/
that.update = function() {
that.marker.setOptions({
position: that.place.points[that.position]
icon: Ox.MapMarkerImage({
mode: 'editing',
rectangle: true,
type: that.place.id[0] == '_' ? 'result' : 'place'
}),
position: that.place.points[that.position],
});
};