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
|
|
@ -21,8 +21,9 @@ Ox.MapMarkerImage = (function() {
|
|||
options = Ox.extend({
|
||||
color: [255, 0, 0],
|
||||
mode: 'normal', // normal, selected, editing
|
||||
rectangle: false,
|
||||
size: 16,
|
||||
type: 'place', // place, result, rectangle
|
||||
type: 'place', // place, result
|
||||
}, options);
|
||||
|
||||
var index = [
|
||||
|
|
@ -30,7 +31,7 @@ Ox.MapMarkerImage = (function() {
|
|||
].join(';');
|
||||
|
||||
if (!cache[index]) {
|
||||
var color = options.type == 'rectangle' ? [0, 0, 0, 0]
|
||||
var color = options.rectangle ? [0, 0, 0, 0]
|
||||
: Ox.merge(
|
||||
Ox.clone(options.color),
|
||||
[options.type == 'place' ? 0.75 : 0.25]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue