function openlayers_layer_type_yahoo::render in Openlayers 6.2
Render.
Overrides openlayers_layer_type::render
File
- includes/
layer_types/ yahoo.inc, line 78 - Yahoo Layer Type
Class
- openlayers_layer_type_yahoo
- OpenLayers Yahoo Layer Type class
Code
function render(&$map) {
static $yahoo_maps_included;
if (!isset($yahoo_maps_included)) {
drupal_add_js(drupal_get_path('module', 'openlayers') . '/includes/layer_types/js/yahoo.js');
drupal_set_html_head('<script src="' . check_url("http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=" . variable_get('openlayers_layers_yahoo_api', '')) . '" type="text/javascript"></script>');
$yahoo_maps_included = TRUE;
}
return $this->options;
}