From bcc2e67086a21dde5fd4c0d568fd73f4546c5493 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 11 Mar 2013 15:46:12 -0300 Subject: Fixing defaultOpacity --- gmap_arcgis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gmap_arcgis.js') 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); -- cgit v1.2.3