Awesome Open Source
Awesome Open Source

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>

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,552,287
Angular (12,640
Js (9,569
Map (3,561
Leaflet (1,076
Mapbox Gl (167
Related Projects