function openlayers_behavior_popup::render in Openlayers 7.2
Same name and namespace in other branches
- 6.2 includes/behaviors/openlayers_behavior_popup.inc \openlayers_behavior_popup::render()
Render.
Overrides openlayers_behavior::render
File
- plugins/
behaviors/ openlayers_behavior_popup.inc, line 73 - Implementation of OpenLayers behavior.
Class
- openlayers_behavior_popup
- Popup Behavior
Code
function render(&$map) {
// Put weight on JS so that we know navigation is included already as this
// will affect touch devices.
drupal_add_js(drupal_get_path('module', 'openlayers') . '/plugins/behaviors/openlayers_behavior_popup.js', array(
'weight' => 10,
));
return $this->options;
}