mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
new marker for router
This commit is contained in:
parent
24641a33f7
commit
d752039de9
2 changed files with 11 additions and 20 deletions
|
@ -75,7 +75,6 @@ const RouterUnconnected: FC<Props> = memo(
|
|||
|
||||
useEffect(() => {
|
||||
OsrmRouter.on('waypointschanged', updateWaypoints)
|
||||
.on('waypointschanged', console.log)
|
||||
.on('routesfound', updateDistance)
|
||||
.addTo(MainMap);
|
||||
|
||||
|
@ -94,11 +93,11 @@ const RouterUnconnected: FC<Props> = memo(
|
|||
interactive: false,
|
||||
icon: divIcon({
|
||||
html: `
|
||||
<div class="leaflet-km-dist">
|
||||
<div>
|
||||
${parseFloat((distance + dist).toFixed(1))}
|
||||
</div>
|
||||
`,
|
||||
className: classNames('leaflet-km-marker router-end-marker', { right: !direction }),
|
||||
className: classNames('router-marker', { right: !direction }),
|
||||
iconSize: [11, 11],
|
||||
iconAnchor: [6, 6],
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue