function openlayers_layer_type_virtualearth::render in Openlayers 6.2
Render.
Overrides openlayers_layer_type::render
File
- includes/
layer_types/ virtualearth.inc, line 63 - OpenLayers VirtualEarth layer type
Class
- openlayers_layer_type_virtualearth
- OpenLayers VirtualEarth Layer Type class
Code
function render(&$map) {
static $virtualearth_maps_included;
if (!isset($virtualearth_maps_included)) {
drupal_add_js(drupal_get_path('module', 'openlayers') . '/includes/layer_types/js/virtualearth.js');
drupal_set_html_head('<script src="' . check_url("http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1") . '" type="text/javascript"></script>');
$virtualearth_maps_included = TRUE;
}
return $this->options;
}