aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-03-11 15:46:12 -0300
committerSilvio <silvio@socioambiental.org>2013-03-11 15:46:12 -0300
commitbcc2e67086a21dde5fd4c0d568fd73f4546c5493 (patch)
tree416feb157f3b4b959d04bfc6c5b32568c9ab98df
parentcdceb27f4f231c5bea9c07cc8d7d545d4439193c (diff)
downloadgmap_arcgis-bcc2e67086a21dde5fd4c0d568fd73f4546c5493.tar.gz
gmap_arcgis-bcc2e67086a21dde5fd4c0d568fd73f4546c5493.tar.bz2
Fixing defaultOpacity
-rw-r--r--gmap_arcgis.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 2d03795..15b776b 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -43,7 +43,7 @@ function gmapArcgisHidePolygons(map, polygons) {
// Add polygons from a given ArcGIS MapServer Layer
function showPolygon(map, params) {
- var defaultOpacity = 0.55;
+ var defaultOpacity = (params.opacity != undefined) ? params.opacity : 0.55;
if (typeof params.overlay != 'undefined') {
params.overlay.setOpacity(defaultOpacity);