Skip to content

Commit

Permalink
fix bug: changed icon to divicon
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed May 11, 2021
1 parent 6f61d9c commit fc4471f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/OSMMap/OSMMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const OSMMap = ({
draggable={draggable}
onDragend={onMarkerDragEnd}
onClick={position.onMarkerClick}
icon={position.icon ?? DefaultIcon}
icon={position.divIcon ? L.divIcon(position.divIcon) : DefaultIcon}
>
{showTooltip && position.title && (
<Tooltip offset={[0, -22]} direction="top">
Expand Down

0 comments on commit fc4471f

Please sign in to comment.