Leaflet plugin for easy adding of tiles from Kartverket
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
.gitignore
.npmignore
L.TileLayer.Kartverket.js
LICENSE.md
example.html
package-lock.json
package.json
readme.md

readme.md

L.TileLayer.Kartverket

L.TileLayer.Kartverket is a Leaflet.js plugin for creating tile layers from Kartverket (The Norwegian Mapping Authority). It is essentially a wrapper over L.TileLayer.

Usage

Either install using npm:

npm install tilelayer-kartverket -S

or Bower:

bower install L.TileLayer.Kartverket -S

or, download manually. Include the file in yout page, and use it:

L.tileLayer.kartverket('layer_name', options).addTo(map);

or, more verbose:

var layer = new L.TileLayer.Kartverket('layer_name', options);

Where layer_name is the name of a layer from kartverket, and options is a set of TileLayer options

To get a list of layer names, call:

var layer_names = L.tileLayer.kartverket.getLayers();

Demo

See the demo page.

License

This plugin is licensed under the Apache Software License, Version 1.1, see LICENSE.md

Background

This plugin is developed by Norkart on behalf of the Norwegian arts Council as part of the "Kultur- og naturreise demo"-project