diff --git a/plugins/behaviors/openlayers_behavior_zoomtolayer.js b/plugins/behaviors/openlayers_behavior_zoomtolayer.js
index 678c72e..0f9728a 100644
--- a/plugins/behaviors/openlayers_behavior_zoomtolayer.js
+++ b/plugins/behaviors/openlayers_behavior_zoomtolayer.js
@@ -26,7 +26,7 @@ Drupal.openlayers.addBehavior('openlayers_behavior_zoomtolayer', function (data,
       else {
         layerextent = layers[i].getDataExtent();
         // Check for valid layer extent
-        if (layerextent != null) {
+        if (layerextent != null && !isNaN(layerextent.getWidth())) {
           map.zoomToExtent(layerextent.scale(zoomtolayer_scale));

           // If unable to find width due to single point,
