mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Assign styles to each area type layer.
This commit is contained in:
parent
2ea12399f8
commit
eb1e1bee6a
|
@ -73,6 +73,7 @@ function farm_area_default_openlayers_layers_alter(&$layers) {
|
|||
'source' => 'farm_area_source_' . $key,
|
||||
'visible' => 1,
|
||||
'zoomActivity' => '',
|
||||
'style' => $type['style'],
|
||||
);
|
||||
|
||||
// Add the source to the export.
|
||||
|
|
|
@ -13,22 +13,27 @@ function farm_area_farm_area_type_info() {
|
|||
return array(
|
||||
'property' => array(
|
||||
'label' => t('Property'),
|
||||
'style' => 'farm_map_style_purple',
|
||||
'weight' => 0,
|
||||
),
|
||||
'building' => array(
|
||||
'label' => t('Building'),
|
||||
'style' => 'farm_map_style_brown',
|
||||
'weight' => 10,
|
||||
),
|
||||
'field' => array(
|
||||
'label' => t('Field'),
|
||||
'style' => 'farm_map_style_yellow',
|
||||
'weight' => 20,
|
||||
),
|
||||
'water' => array(
|
||||
'label' => t('Water feature'),
|
||||
'style' => 'farm_map_style_blue',
|
||||
'weight' => 90,
|
||||
),
|
||||
'landmark' => array(
|
||||
'label' => t('Landmark'),
|
||||
'style' => 'farm_map_style_red',
|
||||
'weight' => 100,
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue