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

@ -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]