You are here

function openlayers_layer_type_virtualearth::settings_form in Openlayers 6.2

Layer-type-wide settings form

File

includes/layer_types/virtualearth.inc, line 48
OpenLayers VirtualEarth layer type

Class

openlayers_layer_type_virtualearth
OpenLayers VirtualEarth Layer Type class

Code

function settings_form() {
  return array(
    'openlayers_layers_virtualearth_api' => array(
      '#type' => 'textfield',
      '#title' => t('VirtualEarth API Key'),
      '#default_value' => variable_get('openlayers_layers_virtualearth_api', ''),
      '#description' => t('<a href="@microsoft">Get a Virtual Earth API Key</a>', array(
        '@microsoft' => 'http://www.microsoft.com/maps/developers/',
      )),
    ),
  );
}