UNPKG

ui-leaflet-layers

Version:
61 lines (49 loc) 1.54 kB
# ui-leaflet-layers [![Build Status](https://travis-ci.org/elesdoar/ui-leaflet-layers.svg?branch=master)](https://travis-ci.org/elesdoar/ui-leaflet-layers) [![dependencies Status](https://david-dm.org/elesdoar/ui-leaflet-layers/status.svg)](https://david-dm.org/elesdoar/ui-leaflet-layers) [![devDependencies Status](https://david-dm.org/elesdoar/ui-leaflet-layers/dev-status.svg)](https://david-dm.org/elesdoar/ui-leaflet-layers?type=dev) Angular UI Leaflet Layers Plugin, it extend layer capabilities for [ui-leaflet](http://angular-ui.github.io/ui-leaflet) layers directive. ### Supported Layers: * [Bing](https://www.bingmapsportal.com/) * China * [esri-leaflet](http://esri.github.io/esri-leaflet/) * [Google Maps](https://developers.google.com/maps/) * HeatLayer * [Here Maps](https://developer.here.com/lp/mapAPIs) * [MapboxGL](https://github.com/mapbox/mapbox-gl-leaflet) * [Mapbox](http://mapbox.com/) * MarkerCluster * Yandex * WebGLHeatMapLayer * UTFGrid * WFS ### Coming Soon: * [CartoDB](http://cartodb.com/) ### MapboxGL Example **Controller:** ```js angular.extend($scope, { center: { lat: 38.91275, lng: -77.032194, zoom: 15 }, layers: { baselayers: { mapboxGlLayer: { name: 'Sample', type: 'mapboxGL', layerOptions: { accessToken: [token], style: 'mapbox://styles/mapbox/streets-v8' } } }, overlays: {} } }) ``` **HTML:** ```html <leaflet lf-center="center" layers="layers" height="480px" width="100%"></leaflet> ```