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 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;
}