You are here

function openlayers_behavior_zoomtolayer::render in Openlayers 7.2

Same name and namespace in other branches
  1. 6.2 includes/behaviors/openlayers_behavior_zoomtolayer.inc \openlayers_behavior_zoomtolayer::render()

Render.

Overrides openlayers_behavior::render

File

plugins/behaviors/openlayers_behavior_zoomtolayer.inc, line 49
Implementation of OpenLayers behavior.

Class

openlayers_behavior_zoomtolayer
Zoom To Layer Behavior

Code

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