An open API service indexing awesome lists of open source software.

https://github.com/simon04/angular-ll-leaflet

Lightweight directives to use Leaflet with AngularJS
https://github.com/simon04/angular-ll-leaflet

angularjs angularjs-directives leaflet leaflet-map

Last synced: 5 months ago
JSON representation

Lightweight directives to use Leaflet with AngularJS

Awesome Lists containing this project

README

          

# angular-ll-leaflet
This project aims at providing a very lightweight [AngularJS](https://github.com/jbdemonte/angular-google-maps-native)-directive for the [Leaflet](http://leafletjs.com/) maps API.

## Directives
* `

` – corresponds to `L.Map`, `ll-{click, dblclick, …}` bind to the map events
* `` – corresponds to the current map view (lat, lng, zoom)
* `` – for modifying the [map view bounds](http://leafletjs.com/reference-1.0.3.html#map-fitbounds)
* `` – corresponds to a `L.Marker`
* `` – corresponds to a `L.DivIcon`, supports transclusion of the content
* `` – corresponds to a `L.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](https://github.com/angular-ui/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](https://github.com/jbdemonte/angular-google-maps-native) – Nice, but for the Google Maps API