0.0.2 • Published 3 years ago

naip-layer-for-leaflet v0.0.2

Weekly downloads
4
License
CC0-1.0
Repository
github
Last release
3 years ago

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