2015-07-23 04:22:06 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* farm_map.default_openlayers_components.inc
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_default_openlayers_components().
|
|
|
|
*/
|
|
|
|
function farm_map_default_openlayers_components() {
|
|
|
|
$export = array();
|
|
|
|
|
|
|
|
$ol_component = new stdClass();
|
|
|
|
$ol_component->disabled = FALSE; /* Edit this to true to make a default ol_component disabled initially */
|
|
|
|
$ol_component->api_version = 1;
|
|
|
|
$ol_component->machine_name = 'farm_map_component_geofield_zoom_to_source';
|
2015-07-28 18:11:49 +02:00
|
|
|
$ol_component->name = 'Farm Map: Geofield Zoom to Source';
|
2015-07-23 04:22:06 +02:00
|
|
|
$ol_component->description = 'Automatically zoom to a geofield source when the map is first built.';
|
|
|
|
$ol_component->factory_service = 'openlayers.Component:ZoomToSource';
|
|
|
|
$ol_component->options = array(
|
2015-07-31 18:16:39 +02:00
|
|
|
'source' => array(
|
|
|
|
'geofield_field_formatter_source' => 'geofield_field_formatter_source',
|
|
|
|
),
|
2015-07-23 04:22:06 +02:00
|
|
|
'animations' => array(
|
|
|
|
'pan' => '500',
|
|
|
|
'zoom' => '500',
|
|
|
|
),
|
|
|
|
'zoom' => 'auto',
|
|
|
|
'enableAnimations' => 1,
|
2015-07-23 07:15:51 +02:00
|
|
|
'max_zoom' => 20,
|
2015-07-23 04:22:06 +02:00
|
|
|
);
|
|
|
|
$export['farm_map_component_geofield_zoom_to_source'] = $ol_component;
|
|
|
|
|
2015-07-30 23:36:52 +02:00
|
|
|
$ol_component = new stdClass();
|
|
|
|
$ol_component->disabled = FALSE; /* Edit this to true to make a default ol_component disabled initially */
|
|
|
|
$ol_component->api_version = 1;
|
|
|
|
$ol_component->machine_name = 'farm_map_component_progress_bar';
|
|
|
|
$ol_component->name = 'Farm Map: Progress Bar';
|
|
|
|
$ol_component->description = '';
|
|
|
|
$ol_component->factory_service = 'openlayers.Component:ProgressBar';
|
|
|
|
$ol_component->options = array();
|
|
|
|
$export['farm_map_component_progress_bar'] = $ol_component;
|
|
|
|
|
2015-07-23 04:22:06 +02:00
|
|
|
return $export;
|
|
|
|
}
|