@nikolinakote/ngx-leaflet-movingmarker
v0.0.2
Published
Moving Marker for ngx-leaflet based on Leaflet.MovingMarker
Downloads
2
Readme
ngx-leaflet-movingmarker
Moving markers for ngx-leaflet, based on the awesome work of @ewoken.
Table of Contents
Install
Dependencies and Typings
npm install --save leaflet
npm install --save npm install @asymmetrik/ngx-leaflet
npm install --save-dev @types/leaflet
Library
npm install --save @arturataide/ngx-leaflet-movingmarker
Usage
import { MovingMarker, MovingMarkerOptions } from 'ngx-leaflet-movingmarker';
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
],
[5000], // deslocation time
options
);
Api
Please see @ewoken
TODO
Specs
License
MIT License
Credits
I just addapted the existing javascript libary to be used in angular with typescript. All credits goes to @ewoken.