naip-layer-for-leaflet
v0.0.2
Published
Display NAIP Imagery on your Leaflet Map
Downloads
13
Maintainers
Readme
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 [email protected] or post an issue at https://github.com/GeoSurge/naip-layer-for-leaflet