Home CE 170 HW Cool Structures Good Articles Hydroshare Data Viewer
Read Layers from HydroShare into Leaflet using Query String Parameters

Simple Leaflet Based Map Viewer for HydroShare Resources

Sam Oldham, 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 parameters "resourceid" and "layername" are specified from a valid HydroShare resource.

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.et.byu.edu/~samueljo/test.html?user=sam.oldham&resourceid=49ea3bd6231c4e8ea8134ef52e9731ba&layername=yangtze

User Name: xxx

Resource ID: xxx

Layer Name: xxx