@arturataide/ngx-leaflet-movingmarker
Version:
Moving Marker for ngx-leaflet based on Leaflet.MovingMarker
47 lines (39 loc) • 883 B
Markdown
Moving markers for [ngx-leaflet], based on the awesome work of [@ewoken].
[](*install)
[](*usage)
[](*api)
[](*todo)
[](*license)
[](*credits)
npm usage
```ts
const options: MovingMarkerOptions = {
icon: L.icon({
iconSize: fromConfig.ICON_SIZE,
iconAnchor: fromConfig.ICON_ANCHOR,
iconUrl: fromConfig.CENTRAL_MARKER,
}),
autostart: true,
loop: false,
};
map.addLayer(new MovingMarker(
[
new L.LatLng(10, 10), // start location
new L.LatLng(20, 20) // end location
],
[], // deslocation time
options);
```
Please see [@ewoken]
Specs
MIT License
I just addapted the existing javascript libary to be used in angular with typescript.
All credits goes to [@ewoken].