Simple Leaflet Based Map Viewer for HydroShare Resources

Jacob Anderson, BYU CE 534 HydroInformatics

This map viewer page is displaying a Leaflet map using Open Street Map tiles as a basemap. It also is able to load a WMS layer from a HydroShare Geoserver WMS service if the paramters "resourceid" and "layername" are specified from a valid HydroShare resource.

To test this page, include the following paramters 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.et.byu.edu/~ander266/mymapviewer.html?user=Jacob%20Anderson&resourceid=5a67996e19014ee7bb85ac56e116ad2d&layername=Stream_Gages

User Name: xxx

Resource ID: xxx

Layer Name: xxx