1.0.0 • Published 7 years ago
angular-ll-leaflet v1.0.0
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?
Building
yarnnpm 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