function openlayers_layer_type_xyz::render in Openlayers 6.2
Same name and namespace in other branches
- 7.2 plugins/layer_types/openlayers_layer_type_xyz.inc \openlayers_layer_type_xyz::render()
Render.
Overrides openlayers_layer_type::render
File
- includes/
layer_types/ xyz.inc, line 74 - XYZ Layer Type http://dev.openlayers.org/docs/files/OpenLayers/Layer/XYZ-js.html
Class
- openlayers_layer_type_xyz
- OpenLayers XYZ Layer Type class
Code
function render(&$map) {
drupal_add_js(drupal_get_path('module', 'openlayers') . '/includes/layer_types/js/xyz.js');
return $this->options;
}