You are here

function openlayers_behavior_drawfeatures::render in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 plugins/behaviors/openlayers_behavior_drawfeatures.inc \openlayers_behavior_drawfeatures::render()

Render.

Overrides openlayers_behavior::render

File

includes/behaviors/openlayers_behavior_drawfeatures.inc, line 59
Implementation of OpenLayers behavior.

Class

openlayers_behavior_drawfeatures
Draw Features behavior.

Code

function render(&$map) {
  drupal_add_css(drupal_get_path('module', 'openlayers') . '/includes/behaviors/js/openlayers_behavior_drawfeatures.css');
  drupal_add_js(drupal_get_path('module', 'openlayers') . '/includes/behaviors/js/openlayers_behavior_drawfeatures.js');
  return $this->options;
}