Revize c0b66eaf
Přidáno uživatelem Václav Honzík před více než 2 roky(ů)
frontend/src/features/TrackingTool/Map/MapPath.tsx | ||
---|---|---|
1 | 1 |
import { Fragment, FunctionComponent, useEffect, useState } from 'react' |
2 | 2 |
import { useDispatch, useSelector } from 'react-redux' |
3 | 3 |
import { RootState } from '../../redux/store' |
4 |
import { PathVariant, MapPoint, isMapPointDisplayable } from './pathUtils'
|
|
4 |
import { PathVariant, MapPoint, isMapPointDisplayable } from '../trackingToolUtils'
|
|
5 | 5 |
import TextPath from 'react-leaflet-textpath' |
6 | 6 |
import { |
7 | 7 |
setPrimaryIdx, |
... | ... | |
113 | 113 |
setVertices( |
114 | 114 |
displayableMapPoints.map((item) => ( |
115 | 115 |
<MapMarker |
116 |
key={`${item.catalogItem.id}`}
|
|
116 |
key={item.id}
|
|
117 | 117 |
position={[ |
118 | 118 |
item.catalogItem.latitude as number, |
119 | 119 |
item.catalogItem.longitude as number, |
120 | 120 |
]} |
121 |
mapPoint={item} |
|
121 | 122 |
updatePositionCallbackFn={(position: LatLngTuple) => { |
122 | 123 |
dispatch( |
123 | 124 |
updateMapMarkerWithId({ |
Také k dispozici: Unified diff
map icon colors start
re #9741