openlayers.default_openlayers_sources.inc in Openlayers 7.3
Provide default sources.
File
includes/openlayers.default_openlayers_sources.incView source
<?php
/**
* @file
* Provide default sources.
*/
/**
* Implements hook_default_openlayers_sources().
*/
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;
}
Functions
Name![]() |
Description |
---|---|
openlayers_default_openlayers_sources | Implements hook_default_openlayers_sources(). |