aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);