Skip to content

Commit e2ac1ed

Browse files
committed
Replace star icon with triangle icon for plant nodes
Removed the star-fill.svg icon and added triangle-fill.svg. Updated Map.jsx to use the new triangle icon for plant nodes in the IconLayer, ensuring visual consistency and clarity.
1 parent 596f5cc commit e2ac1ed

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/assets/icons/star-fill.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/assets/icons/triangle-fill.svg

Lines changed: 3 additions & 0 deletions
Loading

src/features/map/components/Map/Map.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { DataFilterExtension, PathStyleExtension } from '@deck.gl/extensions';
1313
import positron from 'constants/mapStyles/positron.json';
1414
import no_label from 'constants/mapStyles/positron_nolabel.json';
1515
// eslint-disable-next-line import/no-unresolved
16-
import starFillIcon from 'assets/icons/star-fill.svg?url';
16+
import triangleFillIcon from 'assets/icons/triangle-fill.svg?url';
1717

1818
import * as turf from '@turf/turf';
1919
import './Map.css';
@@ -312,7 +312,7 @@ const useMapLayers = (onHover = () => {}) => {
312312
);
313313
}
314314

315-
// Add IconLayer for plant nodes with star icon
315+
// Add IconLayer for plant nodes with triangle icon
316316
// Rendered after other nodes to appear on top
317317
if (plantNodes.length > 0) {
318318
// Use bright yellow for high visibility and to complement blue/red edges
@@ -323,7 +323,7 @@ const useMapLayers = (onHover = () => {}) => {
323323
id: `${name}-plant-nodes`,
324324
data: plantNodes,
325325
getIcon: () => ({
326-
url: starFillIcon,
326+
url: triangleFillIcon,
327327
width: 64,
328328
height: 64,
329329
anchorY: 32,

0 commit comments

Comments
 (0)