ui-leaflet-layers

    0.1.3 • Public • Published

    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>

    Install

    npm i ui-leaflet-layers

    DownloadsWeekly Downloads

    203

    Version

    0.1.3

    License

    MIT

    Last publish

    Collaborators

    • elesdoar