Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b45d0300

Přidáno uživatelem Václav Honzík před asi 2 roky(ů)

draggable map marker pt1

re #9741

Zobrazit rozdíly:

frontend/src/features/TrackingTool/MapPath.tsx
14 14
import { DialogCatalogItemDetail as CatalogItemDetailDialog } from '../Catalog/CatalogItemDetail'
15 15
import { useDispatch, useSelector } from 'react-redux'
16 16
import { RootState } from '../redux/store'
17
import MapMarker from './MapMarker'
17 18

  
18 19
// CatalogItemDto wrapper to keep track whether the item is active or not
19 20
class DisplayableMapPoint {
......
123 124
     */
124 125
    const buildVertices = () => {
125 126
        return mapPoints.map((mapPoint, idx) => (
126
            <Marker
127
            <MapMarker
127 128
                key={idx}
128 129
                position={[
129 130
                    mapPoint.catalogItem.latitude as number,
......
161 162
                        </Stack>
162 163
                    </Fragment>
163 164
                </Popup>
164
            </Marker>
165
            </MapMarker>
165 166
        ))
166 167
    }
167 168

  

Také k dispozici: Unified diff