angular-ll-leaflet
v1.0.0
Published
Lightweight directives to use Leaflet with AngularJS
Downloads
9
Readme
angular-ll-leaflet
This project aims at providing a very lightweight AngularJS-directive for the Leaflet maps API.
Directives
<div ll-map>
– corresponds toL.Map
,ll-{click, dblclick, …}
bind to the map events<ll-view>
– corresponds to the current map view (lat, lng, zoom)<ll-fit-bounds ll-bounds="…">
– for modifying the map view bounds<ll-marker>
– corresponds to aL.Marker
<ll-div-icon>
– corresponds to aL.DivIcon
, supports transclusion of the content<ll-popup>
– corresponds to aL.Popup
, supports transclusion of the content
Demo?
- https://cdn.rawgit.com/simon04/angular-ll-leaflet/master/demo/
Building
yarn
npm run dist
Alternatives?
- ui-leaflet – Feature rich, but as of version 1.0.0, it amounts to 80kB of glue code for a library of 120kB
- angular-google-maps-native – Nice, but for the Google Maps API