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.
The Draw interaction seems to be broken in the current dev release. When I load a map with Draw enabled, I get the following error in the console:
********************* Starting building apios_map *********************
openlayers.debug.js?nmjnr0:12 Building map...
openlayers.debug.js?nmjnr0:20 Building sources...
openlayers.debug.js?nmjnr0:29 Building controls...
openlayers.debug.js?nmjnr0:38 Building interactions...
openlayers.debug.js?nmjnr0:74 Loading interactions openlayers_interaction_draw...
openlayers.debug.js?nmjnr0:75 Object data
openlayers.debug.js?nmjnr0:76 Object {mn: "openlayers_interaction_draw", fs: "openlayers.interaction.internal.draw"}
openlayers.console.js?nmjnr0:27 Cannot set property 'features' of undefined
openlayers.console.js?nmjnr0:27 TypeError: Cannot set property 'features' of undefined
at Object.Drupal.openlayers.pluginManager.register.init (http://local.apiosinstitute.org/sites/all/modules/contrib/openlayers/src/Openlayers/Interaction/Draw/js/draw.js?nmjnr0:24:23)
...
I am using Geofield 7.x-2.3 with Openlayers 7.x-3.x.