mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Use farm_map_geofield widget in all geofields.
This commit is contained in:
parent
2ea421a4a6
commit
4f30833bed
10 changed files with 22 additions and 111 deletions
|
@ -133,16 +133,9 @@ function farm_area_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'openlayers_geofield',
|
||||
'module' => 'farm_map_geofield',
|
||||
'settings' => array(
|
||||
'allow_edit' => 1,
|
||||
'data_storage' => 'collection',
|
||||
'delta_handling' => 'default',
|
||||
'feature_types' => array(
|
||||
'path' => 'path',
|
||||
'point' => 'point',
|
||||
'polygon' => 'polygon',
|
||||
),
|
||||
'geocoder_field' => 'field_farm_files',
|
||||
'geocoder_handler' => 'kml',
|
||||
'handler_settings' => array(
|
||||
|
@ -162,11 +155,9 @@ function farm_area_field_default_field_instances() {
|
|||
),
|
||||
),
|
||||
),
|
||||
'openlayers_map' => 'farm_map_geofield',
|
||||
'showInputField' => 1,
|
||||
'use_geocoder' => 1,
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'type' => 'farm_map_geofield',
|
||||
'weight' => 3,
|
||||
),
|
||||
);
|
||||
|
|
|
@ -432,16 +432,9 @@ function farm_equipment_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'openlayers_geofield',
|
||||
'module' => 'farm_map_geofield',
|
||||
'settings' => array(
|
||||
'allow_edit' => 1,
|
||||
'data_storage' => 'collection',
|
||||
'delta_handling' => 'default',
|
||||
'feature_types' => array(
|
||||
'path' => 'path',
|
||||
'point' => 'point',
|
||||
'polygon' => 'polygon',
|
||||
),
|
||||
'geocoder_field' => 'field_farm_files',
|
||||
'geocoder_handler' => 'kml',
|
||||
'handler_settings' => array(
|
||||
|
@ -461,11 +454,9 @@ function farm_equipment_field_default_field_instances() {
|
|||
),
|
||||
),
|
||||
),
|
||||
'openlayers_map' => 'farm_map_geofield',
|
||||
'showInputField' => 1,
|
||||
'use_geocoder' => 1,
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'type' => 'farm_map_geofield',
|
||||
'weight' => 14,
|
||||
),
|
||||
);
|
||||
|
|
|
@ -689,16 +689,9 @@ function farm_livestock_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'openlayers_geofield',
|
||||
'module' => 'farm_map_geofield',
|
||||
'settings' => array(
|
||||
'allow_edit' => 1,
|
||||
'data_storage' => 'collection',
|
||||
'delta_handling' => 'default',
|
||||
'feature_types' => array(
|
||||
'path' => 'path',
|
||||
'point' => 'point',
|
||||
'polygon' => 'polygon',
|
||||
),
|
||||
'geocoder_field' => 'field_farm_files',
|
||||
'geocoder_handler' => 'kml',
|
||||
'handler_settings' => array(
|
||||
|
@ -718,11 +711,9 @@ function farm_livestock_field_default_field_instances() {
|
|||
),
|
||||
),
|
||||
),
|
||||
'openlayers_map' => 'farm_map_geofield',
|
||||
'showInputField' => 1,
|
||||
'use_geocoder' => 1,
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'type' => 'farm_map_geofield',
|
||||
'weight' => 22,
|
||||
),
|
||||
);
|
||||
|
|
|
@ -175,16 +175,9 @@ function farm_log_activity_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'openlayers_geofield',
|
||||
'module' => 'farm_map_geofield',
|
||||
'settings' => array(
|
||||
'allow_edit' => 1,
|
||||
'data_storage' => 'collection',
|
||||
'delta_handling' => 'default',
|
||||
'feature_types' => array(
|
||||
'path' => 'path',
|
||||
'point' => 'point',
|
||||
'polygon' => 'polygon',
|
||||
),
|
||||
'geocoder_field' => 'field_farm_files',
|
||||
'geocoder_handler' => 'kml',
|
||||
'handler_settings' => array(
|
||||
|
@ -204,11 +197,9 @@ function farm_log_activity_field_default_field_instances() {
|
|||
),
|
||||
),
|
||||
),
|
||||
'openlayers_map' => 'farm_map_geofield',
|
||||
'showInputField' => 1,
|
||||
'use_geocoder' => 1,
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'type' => 'farm_map_geofield',
|
||||
'weight' => 3,
|
||||
),
|
||||
);
|
||||
|
|
|
@ -192,16 +192,9 @@ function farm_log_harvest_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'openlayers_geofield',
|
||||
'module' => 'farm_map_geofield',
|
||||
'settings' => array(
|
||||
'allow_edit' => 1,
|
||||
'data_storage' => 'collection',
|
||||
'delta_handling' => 'default',
|
||||
'feature_types' => array(
|
||||
'path' => 'path',
|
||||
'point' => 'point',
|
||||
'polygon' => 'polygon',
|
||||
),
|
||||
'geocoder_field' => 'field_farm_files',
|
||||
'geocoder_handler' => 'kml',
|
||||
'handler_settings' => array(
|
||||
|
@ -216,11 +209,9 @@ function farm_log_harvest_field_default_field_instances() {
|
|||
),
|
||||
),
|
||||
),
|
||||
'openlayers_map' => 'farm_map_geofield',
|
||||
'showInputField' => 1,
|
||||
'use_geocoder' => 1,
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'type' => 'farm_map_geofield',
|
||||
'weight' => 5,
|
||||
),
|
||||
);
|
||||
|
|
|
@ -247,16 +247,9 @@ function farm_log_input_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'openlayers_geofield',
|
||||
'module' => 'farm_map_geofield',
|
||||
'settings' => array(
|
||||
'allow_edit' => 1,
|
||||
'data_storage' => 'collection',
|
||||
'delta_handling' => 'default',
|
||||
'feature_types' => array(
|
||||
'path' => 'path',
|
||||
'point' => 'point',
|
||||
'polygon' => 'polygon',
|
||||
),
|
||||
'geocoder_field' => 'field_farm_files',
|
||||
'geocoder_handler' => 'kml',
|
||||
'handler_settings' => array(
|
||||
|
@ -271,11 +264,9 @@ function farm_log_input_field_default_field_instances() {
|
|||
),
|
||||
),
|
||||
),
|
||||
'openlayers_map' => 'farm_map_geofield',
|
||||
'showInputField' => 1,
|
||||
'use_geocoder' => 1,
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'type' => 'farm_map_geofield',
|
||||
'weight' => 3,
|
||||
),
|
||||
);
|
||||
|
|
|
@ -175,16 +175,9 @@ function farm_log_observation_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'openlayers_geofield',
|
||||
'module' => 'farm_map_geofield',
|
||||
'settings' => array(
|
||||
'allow_edit' => 1,
|
||||
'data_storage' => 'collection',
|
||||
'delta_handling' => 'default',
|
||||
'feature_types' => array(
|
||||
'path' => 'path',
|
||||
'point' => 'point',
|
||||
'polygon' => 'polygon',
|
||||
),
|
||||
'geocoder_field' => 'field_farm_files',
|
||||
'geocoder_handler' => 'kml',
|
||||
'handler_settings' => array(
|
||||
|
@ -199,11 +192,9 @@ function farm_log_observation_field_default_field_instances() {
|
|||
),
|
||||
),
|
||||
),
|
||||
'openlayers_map' => 'farm_map_geofield',
|
||||
'showInputField' => 1,
|
||||
'use_geocoder' => 1,
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'type' => 'farm_map_geofield',
|
||||
'weight' => 10,
|
||||
),
|
||||
);
|
||||
|
|
|
@ -35,17 +35,10 @@ function farm_movement_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'openlayers_geofield',
|
||||
'module' => 'farm_map_geofield',
|
||||
'settings' => array(
|
||||
'allow_edit' => 1,
|
||||
'data_storage' => 'collection',
|
||||
'delta_handling' => 'default',
|
||||
'feature_types' => array(
|
||||
'path' => 'path',
|
||||
'point' => 'point',
|
||||
'polygon' => 'polygon',
|
||||
),
|
||||
'geocoder_field' => 'field_farm_animal_tag_location',
|
||||
'geocoder_field' => 'field_farm_move_to',
|
||||
'geocoder_handler' => 'bing',
|
||||
'handler_settings' => array(
|
||||
'google' => array(
|
||||
|
@ -64,11 +57,10 @@ function farm_movement_field_default_field_instances() {
|
|||
),
|
||||
),
|
||||
),
|
||||
'openlayers_map' => 'farm_map_geofield',
|
||||
'showInputField' => 1,
|
||||
'latlng_override' => 0,
|
||||
'use_geocoder' => 0,
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'type' => 'farm_map_geofield',
|
||||
'weight' => 3,
|
||||
),
|
||||
);
|
||||
|
|
|
@ -133,16 +133,9 @@ function farm_soil_test_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'openlayers_geofield',
|
||||
'module' => 'farm_map_geofield',
|
||||
'settings' => array(
|
||||
'allow_edit' => 1,
|
||||
'data_storage' => 'collection',
|
||||
'delta_handling' => 'default',
|
||||
'feature_types' => array(
|
||||
'path' => 0,
|
||||
'point' => 'point',
|
||||
'polygon' => 0,
|
||||
),
|
||||
'geocoder_field' => 'field_farm_files',
|
||||
'geocoder_handler' => 'kml',
|
||||
'handler_settings' => array(
|
||||
|
@ -162,11 +155,9 @@ function farm_soil_test_field_default_field_instances() {
|
|||
),
|
||||
),
|
||||
),
|
||||
'openlayers_map' => 'farm_map_geofield',
|
||||
'showInputField' => 1,
|
||||
'use_geocoder' => 1,
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'type' => 'farm_map_geofield',
|
||||
'weight' => 8,
|
||||
),
|
||||
);
|
||||
|
|
|
@ -132,16 +132,9 @@ function farm_water_test_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'openlayers_geofield',
|
||||
'module' => 'farm_map_geofield',
|
||||
'settings' => array(
|
||||
'allow_edit' => 1,
|
||||
'data_storage' => 'collection',
|
||||
'delta_handling' => 'default',
|
||||
'feature_types' => array(
|
||||
'path' => 0,
|
||||
'point' => 'point',
|
||||
'polygon' => 0,
|
||||
),
|
||||
'geocoder_field' => 'field_farm_files',
|
||||
'geocoder_handler' => 'kml',
|
||||
'handler_settings' => array(
|
||||
|
@ -161,11 +154,9 @@ function farm_water_test_field_default_field_instances() {
|
|||
),
|
||||
),
|
||||
),
|
||||
'openlayers_map' => 'farm_map_geofield',
|
||||
'showInputField' => 1,
|
||||
'use_geocoder' => 1,
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'type' => 'farm_map_geofield',
|
||||
'weight' => 9,
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue