forked from 0x2620/oxjs
correct transparency of result place rectangle and rectangle markers (fixes #312)
This commit is contained in:
parent
f317e6ccf0
commit
2ed61c7b08
4 changed files with 21 additions and 10 deletions
|
|
@ -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],
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue