| 1 |
/* $Id: gmap_shapes.js,v 1.5 2009/02/11 20:21:41 bdragon Exp $ */ |
/* $Id: gmap_shapes.js,v 1.6 2009/04/06 20:21:49 bec Exp $ */ |
| 2 |
|
|
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 68 |
style[3] = '#' + style[3]; |
style[3] = '#' + style[3]; |
| 69 |
style[4] = style[4] / 100; |
style[4] = style[4] / 100; |
| 70 |
} |
} |
| 71 |
|
|
| 72 |
|
if (shape.type == 'encoded_line') { |
| 73 |
|
shape.color = style[0]; |
| 74 |
|
shape.weight = style[1]; |
| 75 |
|
shape.opacity = style[2]; |
| 76 |
|
} |
| 77 |
|
else if (shape.type == 'encoded_polygon') { |
| 78 |
|
$.each(shape.polylines, function(i, polyline) { |
| 79 |
|
polyline.color = style[0]; |
| 80 |
|
polyline.weight = style[1]; |
| 81 |
|
polyline.opacity = style[2]; |
| 82 |
|
}); |
| 83 |
|
shape.fill = true; |
| 84 |
|
shape.color = style[3]; |
| 85 |
|
shape.opacity = style[4]; |
| 86 |
|
shape.outline = true; |
| 87 |
|
} |
| 88 |
|
|
| 89 |
$.each(style, function (i, n) { |
$.each(style, function (i, n) { |
| 90 |
cargs.push(n); |
cargs.push(n); |