GISNJ

Open Leaflet plugin · Version 1.0.0

Leaflet.NJImagery

Add nearly a century of public New Jersey aerial imagery to any Leaflet map with a single layer factory or ready-made picker.

What’s included

The plugin wraps New Jersey Office of GIS WMS services in familiar Leaflet APIs.

  • 19 imagery layers from 1920–2020
  • Natural color and infrared collections
  • No runtime dependency beyond Leaflet
  • Browser, CommonJS, and AMD support

Quick start

<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="https://maps.gisnj.com/tools/leaflet-nj-imagery/leaflet-nj-imagery.js"></script>

const map = L.map("map").setView([40.15, -74.7], 9);
L.control.njImagery({ collapsed: false }).addTo(map);

API

L.tileLayer.njImagery()

Create one imagery layer by ID and pass any standard Leaflet WMS options.

L.control.njImagery()

Add the complete imagery collection using a standard Leaflet layer control.

L.NJImagery.layers()

Get every imagery layer keyed by its human-readable label.

L.NJImagery.catalog

Inspect layer IDs, labels, years, and imagery types without creating layers.