Skip to content

PascalLike/leaflet-ogc-layers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leaflet-ogc-layers

A plugin for using an OGC Maps or Tiles Layer with leafletjs

Installing

Download the /dist/OgcLayers.js

Note Compatible with Leaflet v1.7+

Usage

Step 1. Include the required js in your document

<script src="./OgcLayers.js"></script>

Step 2. Add your layer to map using the L.ogcMapsLayer or L.ogcTilesLayer functions

// Using the default style
L.ogcMapsLayer('https://test.cubewerx.com/cubewerx/cubeserv/demo/ogcapi/Winnipeg_2019/collections/dtm_1m').addTo(map)

// Using the hillshade style
L.ogcMapsLayer('https://test.cubewerx.com/cubewerx/cubeserv/demo/ogcapi/Winnipeg_2019/collections/dtm_1m', {
  style: 'hillshade',
  f: 'png'
}).addTo(map)

// Using the tiles
L.ogcTilesLayer('http://5.9.22.176:8080/ogcapi/collections/HRDEM-RedRiver:DTM:2m').addTo(map)

About

A plugin for using an OGC Maps and Tiles Layer with leafletjs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages