Table of Contents | ||
---|---|---|
|
Description
Info |
---|
This widget is still in active development but a basic version is available for testing purposes. |
The geoserver widget enables the display of large datasets on a map by utilising the web mapping service provided by geoserver.
At present the geoserver widget assumes data loaded onto geoserver is configured to use EPSG:4326 - WGS 84, latitude/longitude coordinate system based on the Earth's center of mass, used by the Global Positioning System among others.
To improve performance it is recommended that data loaded onto geoserver is in the form of a materialized view.
Attributes
center
: Object - Lat/Lng object indicating the map center point.
zoom
: Number - The initial zoom level of the map
maxZoom
: Number - The max zoom allowed on the map. This should correspond to the value set on the layers loaded onto geoserver.
layers
: Array - An array of layers that should be loaded from geoserver. Each layer consists of the following parameters:
name
: String - The name of the layer to display in the layer selection dropdown.
workspace
: String - The name of the workspace on geoserver in which the layer is stored.
layer
: String - The name of the layer as it exists on geoserver.
featureActionText
: (Not yet available for use) String | Null - Text to display in the button when a feature is selected. If set to null no button will display.
Example
Code Block |
---|
<raw type="GeoserverMapWidget" action="mapAction">
<content variable="rawMapContent" />
</raw> |
Code Block |
---|
{
"center": {"lat": -34.151771086784734, "lng": 21.258544921875},
"zoom": 10,
"maxZoom": 19,
"featureActionText": "Edit Properties",
"layers": [
{
"name": "Hessequa Stands",
"workspace": "hessequa",
"layer": "mv_bi_geo_stands_water"
}
]
} |
...