Skip to content

dataLayerGeojsonPolygon

Technical Details

Polygons, defined using a geojson file, can be displayed. This is helpful for layers such as basins or fire boundaries.

Configuration

The following parameters may be specified in the configuration file when defining a dataLayerGeojsonPolygon layer.

Parameter Example Value Default Description
id "basinInfo" required Unique layer identifier. Used only for programming puposes and will not be seen by the user but MUST be unique.
class "data-layer-geojson-polygon" required This specifies the class to use to display a data layer.
color "yellow" none Color of polygon.
fillOpacity "0.3" 0.3 Opacity of the polygon fill color.
label "Basin" required Label on menu checkbox.
popupTitle "NAME" none Polygon attribute to use in the PopupInfo.
refresh false false Layers that have this set to true will be updated every 5 minutes, or whatever the system-wide refresh interval is set to.
stroke true false Whether to include the polygon outline.
url "map/overlay-layers/basins.geojson" required Filename of data file. Can also be a full http address to external data.
weight 3 1 Thickness of the polygon perimeter.