mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Update Features export.
This commit is contained in:
parent
2d336e500e
commit
23af5b8635
|
@ -10,18 +10,6 @@
|
|||
function farm_map_default_openlayers_controls() {
|
||||
$export = array();
|
||||
|
||||
$ol_control = new stdClass();
|
||||
$ol_control->disabled = FALSE; /* Edit this to true to make a default ol_control disabled initially */
|
||||
$ol_control->api_version = 1;
|
||||
$ol_control->machine_name = 'farm_map_control_layer_switcher';
|
||||
$ol_control->name = 'Farm Map: Layer Switcher';
|
||||
$ol_control->description = '';
|
||||
$ol_control->factory_service = 'openlayers.Control:OL3LayerSwitcher';
|
||||
$ol_control->options = array(
|
||||
'collapsible' => 0,
|
||||
);
|
||||
$export['farm_map_control_layer_switcher'] = $ol_control;
|
||||
|
||||
$ol_control = new stdClass();
|
||||
$ol_control->disabled = FALSE; /* Edit this to true to make a default ol_control disabled initially */
|
||||
$ol_control->api_version = 1;
|
||||
|
@ -34,5 +22,17 @@ function farm_map_default_openlayers_controls() {
|
|||
);
|
||||
$export['farm_map_control_geolocate'] = $ol_control;
|
||||
|
||||
$ol_control = new stdClass();
|
||||
$ol_control->disabled = FALSE; /* Edit this to true to make a default ol_control disabled initially */
|
||||
$ol_control->api_version = 1;
|
||||
$ol_control->machine_name = 'farm_map_control_layer_switcher';
|
||||
$ol_control->name = 'Farm Map: Layer Switcher';
|
||||
$ol_control->description = '';
|
||||
$ol_control->factory_service = 'openlayers.Control:OL3LayerSwitcher';
|
||||
$ol_control->options = array(
|
||||
'collapsible' => 0,
|
||||
);
|
||||
$export['farm_map_control_layer_switcher'] = $ol_control;
|
||||
|
||||
return $export;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
function farm_map_field_default_field_bases() {
|
||||
$field_bases = array();
|
||||
|
||||
// Exported field_base: 'field_farm_geofield'
|
||||
// Exported field_base: 'field_farm_geofield'.
|
||||
$field_bases['field_farm_geofield'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => -1,
|
||||
|
|
|
@ -7,8 +7,8 @@ dependencies[] = features
|
|||
dependencies[] = geofield
|
||||
dependencies[] = openlayers
|
||||
dependencies[] = openlayers_geofield
|
||||
dependencies[] = openlayers_library
|
||||
dependencies[] = openlayers_geolocate_button
|
||||
dependencies[] = openlayers_library
|
||||
features[ctools][] = openlayers:default_openlayers_components:1
|
||||
features[ctools][] = openlayers:default_openlayers_controls:1
|
||||
features[ctools][] = openlayers:default_openlayers_layers:1
|
||||
|
@ -19,8 +19,8 @@ features[features_api][] = api:2
|
|||
features[field_base][] = field_farm_geofield
|
||||
features[openlayers_components][] = farm_map_component_geofield_zoom_to_source
|
||||
features[openlayers_components][] = farm_map_component_progress_bar
|
||||
features[openlayers_controls][] = farm_map_control_layer_switcher
|
||||
features[openlayers_controls][] = farm_map_control_geolocate
|
||||
features[openlayers_controls][] = farm_map_control_layer_switcher
|
||||
features[openlayers_layers][] = farm_map_layer_google_hybrid
|
||||
features[openlayers_layers][] = farm_map_layer_google_satellite
|
||||
features[openlayers_layers][] = farm_map_layer_google_terrain
|
||||
|
|
Loading…
Reference in a new issue