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.
By ETENTION on
Hi
I have a add content page that has a single field with map widget.
As per documentation I should have access to map but it results undefined:
var ol = jQuery('#openlayers-map').data('openlayers'); // Undefined
I think that figured out how it can be accessed:
var ol = Drupal.settings.openlayers.maps['openlayers-map'];
How to add featureselect event on current maps features?
To get something to loop over and assign select functionality.
Openlayers2 7.2-beta11