3
0
Fork 0
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:
Michael Stenta 2015-07-28 18:14:07 -04:00
parent 2ea12399f8
commit eb1e1bee6a
2 changed files with 6 additions and 0 deletions

View file

@ -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.

View file

@ -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,
),
);