Using maps with Nesstar data
The last part of the process uses the Nesstar Publisher, and involves adding a pointer to the maps when publishing your data.
When preparing your data for publishing, find the geographical variable and level you want to be able to display as a map. Remember - each level needs its own map.
Adding a link to a map
In Publisher, select the geographical variable required. Make sure the value field for each geographical entity has values that match up to the Id's in the shape file you are going to use.
The Publisher field ‘GeoMap URI’ is used to connect to the relevant map, so this field needs to be completed with an URI in the following format:
This tells Nesstar to use the wms server at $NESSTAR_SERVER/geoserver/wms, and to ask for the layer called $MAP_FILE_NAME.
After publishing this dataset, the map icon should be clickable in WebView when viewing a cube or table that contains the geographical variable at a level that has a map set.
To use multiple layers, use a commma separated list of layer IDs and a list of layer types on the URL:
The order of the list of layers is significant; it is also the order they will show up in webView (first layer on top). The list of layer types is related to the list of layers; it tells the WMS what type each layer is.
- polygon: vector based shapes
- point: points of interest
- raster: image files
Note: Remember to give the layers a title when publishing in order for WebView to build a proper list of layers to display.