Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
Behaviors
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 May 2010 at 14:07 UTC
Updated:
5 Jun 2010 at 22:40 UTC
When activating ZoomToLayer behaviour in OpenLayers CCK the editing toolbar doesn't show up if the WKT field is null.
Disabling ZoomToLayer makes the toolbar visible again.
This is with GoogleChrome actually, with FireFox you don't even get the map but rather a message:
Error during map rendering: TypeError: bounds is null
Makes sense, as null geometry means no bounds...
Comments
Comment #1
zzolo commentedI would assume the issues is that there is not checking for null or empty features.
Comment #2
zzolo commentedAdded check to ensure an extent is found before trying to zoom.
http://drupal.org/cvs?commit=370368