You are here

function openlayers_default_openlayers_sources in Openlayers 7.3

Implements hook_default_openlayers_sources().

File

includes/openlayers.default_openlayers_sources.inc, line 10
Provide default sources.

Code

function openlayers_default_openlayers_sources() {
  $export = array();
  $ol_source = new stdClass();
  $ol_source->disabled = FALSE;

  /* Edit this to true to make a default source disabled initially */
  $ol_source->api_version = 1;
  $ol_source->machine_name = 'openlayers_source_osm';
  $ol_source->name = 'OpenStreetMap';
  $ol_source->description = 'Source OpenStreetMap description';
  $ol_source->factory_service = 'openlayers.Source:OSM';
  $export['openlayers_source_osm'] = $ol_source;
  return $export;
}