Wondering what’s next for npm?Check out our public roadmap! »

    naip-layer-for-leaflet

    0.0.2 • Public • Published

    naip-layer-for-leaflet

    NAIP Layer for Leaflet

    install

    npm install naip-layer-for-leaflet

    usage

    const L = require("leaflet");
    const NAIPLayer = require("naip-layer-for-leaflet");
    
    const map = L.map('map').setView([34.755, -86.754], 15);
    
    const layer = new NAIPLayer({
        debugLevel: 0, // turn off logging
        fetch: async (url, options) => {
            // you must implement a method for fetching the signed GeoTIFFs 
        },
        sign: async url => {
            // you must implement a method for signing a URL to a GeoTIFF on AWS
        },
        year: 2017
    });
    layer.addTo(map);

    support

    Email daniel@geosurge.io or post an issue at https://github.com/GeoSurge/naip-layer-for-leaflet

    Install

    npm i naip-layer-for-leaflet

    DownloadsWeekly Downloads

    2

    Version

    0.0.2

    License

    CC0-1.0

    Unpacked Size

    15.3 MB

    Total Files

    8

    Last publish

    Collaborators

    • avatar