Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: zzolo commentedI would assume the issues is that there is not checking for null or empty features.
Comment #2
zzolo CreditAttribution: zzolo commentedAdded check to ensure an extent is found before trying to zoom.
http://drupal.org/cvs?commit=370368