Custom Leaflet Map Viewer

By Xueyi Li

This map viewer page displays a Leaflet map using OpenStreetMap tiles as a basemap. It can also load a WMS layer from a custom Geoserver WMS service if the parameters "resourceid" and "layername" are provided.

To test this page, include the following parameters in the URL query string in your browser and set a value for each one: 'user', 'resourceid', and 'layername'

For example, here is a full URL with the query string added:

https://www.example.com/map.html?user=Your%20Name&resourceid=your_resource_id&layername=your_layer_name

User Name: xxx

Resource ID: xxx

Layer Name: xxx