Open ndrean opened 2 years ago
i have same issue. did you resolve it? ?
Two things I did wrong:
import * as L from 'leaflet'
import { MarkersCanvas } from "leaflet-markers-canvas";
...
then you can add a marker to the canvas with markersCavans.ddMarker(marker)
.
But you cannot drag it when added to a canvas. To do so, we need to pass into a Layer or directly to map
.
Note also that there is no "guard" area around a marker when drawn into a canvas.