Skip to content

Commit

Permalink
Add field occurrence point style
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Mar 12, 2025
1 parent da2ec96 commit 0602256
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/assets/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
--color-map-asserted: 249, 115, 22;
--color-map-type-material: 51, 136, 255;
--color-map-collection-object: 239, 68, 68;
--color-map-field-occurrence: 132, 204, 22;

--color-scrollbar-thumb: 156, 163, 175;
--color-scrollbar-track: 229, 231, 235;
Expand Down
5 changes: 5 additions & 0 deletions src/components/Map/icons/FieldOccurrence.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const FieldOccurrence = {
className: 'bg-map-field-occurrence rounded-full map-point-marker',
iconSize: [8, 8],
iconAnchor: [4, 4]
}
1 change: 1 addition & 0 deletions src/components/Map/icons/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './AssertedDistribution'
export * from './CollectionObject'
export * from './FieldOccurrence'
export * from './Georeference'
export * from './TypeMaterial'
5 changes: 5 additions & 0 deletions src/components/Map/shapes/FieldOccurrence.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const CollectionObject = {
color: `rgb(var(--color-map-field-occurrence))`,
weight: 1,
fillOpacity: 'var(--color-map-shape-opacity)'
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ export const LEGEND = {
TypeMaterial: {
label: 'Type material',
background: 'bg-map-type-material'
},
FieldOccurrence: {
label: 'Field occurrence',
background: 'bg-map-field-occurrence'
}
}
3 changes: 2 additions & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ module.exports = {
aggregate: withOpacity('--color-map-aggregate'),
asserted: withOpacity('--color-map-asserted'),
'type-material': withOpacity('--color-map-type-material'),
'collection-object': withOpacity('--color-map-collection-object')
'collection-object': withOpacity('--color-map-collection-object'),
'field-occurrence': withOpacity('--color-map-field-occurrence')
},

primary: {
Expand Down

0 comments on commit 0602256

Please sign in to comment.