From de75c249146ba73aec50730b343a17945ffa26c4 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 14 Nov 2012 15:33:07 -0200 Subject: Minor fix --- gmap_arcgis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmap_arcgis.js b/gmap_arcgis.js index eb90428..c93a8cc 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -132,7 +132,7 @@ function gmapArcgisHidePolygons(polygons) { // Add polygons from a given ArcGIS MapServer Layer function showPolygon(polygon) { - if (polygon.overlay != undefined) { + if (typeof polygon.overlay != 'undefined') { polygon.overlay.show(); return; } -- cgit v1.2.3