Home

Awesome

ui-leaflet-layers

Build Status dependencies Status devDependencies Status

Angular UI Leaflet Layers Plugin, it extend layer capabilities for ui-leaflet layers directive.

Supported Layers:

Coming Soon:

MapboxGL Example

Controller:

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:

<leaflet lf-center="center" layers="layers" height="480px" width="100%"></leaflet>