I have added a new interesting feature to the SCN Open Source Community Leaflet Maps component I would like to share today.
An original overview can be found here:
Design Studio 1.6 SDK - Leaflet Maps for more mapping goodness
What is WMS? Wikipedia has a good definition (https://en.wikipedia.org/wiki/Web_Map_Service😞
A Web Map Service (WMS) is a standard protocol for serving (over the Internet) georeferenced map images which a map server generates using data from a GIS database. The Open Geospatial Consortium developed the specification and first published it in 1999.
Basically it makes for interesting overlays not possible with Map Tiles or feature overlays alone. This could be because geographic data is too huge to maintain pre-rendered tiles for, or the real-time nature of some data (weather, for example) would not make sense to store/bake in as a tile or feature.
I have what I think makes for an interesting illustration of how you could augment your maps as a result. I'll use a few interesting examples:
I'll start with an example map from my prior Leaflet blog post with Markers showing universities in a few regions of the US:
Next, in Additional Properties Sheet, I go to Layers -> Overlays -> and Add a new overlay and click the 'More...' button.
What I have added is a new Layer Type option called 'WMS':
What we now must do is provide a WMS server URL which then will request the WMS capabilities available. To find a WMS server, use google or a directory service like Spatineo (Spatineo Directory). I have included a few examples that you can find under Presets:
For this example however, I will pick Nexrad under the 'WMS Presets' entry. As you change your WMS base URL, it will query the URL and assuming you have provided a valid URL, it will return a list of Layers available for your use:
In this example, I will pick the first entry 'nexrad_base_reflect'. Below are the results:
Pretty cool!
What else can we do? I found another WMS that shows Geological survey information, perhaps good if your data makes sense to be paired with that. I included a few sample URLs:
I will pick Tennessee Geology, and then checkmark the layer with the title 'Tennessee_Geology':
We can even add both Nexrad, Tennessee Geological layers at same time:
And of course you can set which layers are visible by the default, and the user may toggle them at runtime:
I am no WMS expert, but the possibilities become quite interesting I think!
A few things to note:
This version is nearly done and should be available for download in the usual spot (details here: SCN Design Studio 1.6 SDK Components (ver 3.0)) this week (week of June 1 2016)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
9 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |