#
Layers
"title":
use plural name where practical"group":
the name of the layer group in which the layer will appear in the layer panel
#
Basic GeoJSON Layer
{
"title": "Maternal and Child Health Zones",
"group": "Family Services",
"type": "GeoJSON",
"config": {
"spatial": {
"url": "https://d2nozjvesbm579.cloudfront.net/ogr2ogr?source=data.gov.au/bendigo/cogb-community-mach-zones.shz",
"label": "Name",
"id": "Name"
}
},
"styleGeoStyler": {
"type": "SLD",
"url": "https://config.pozi.com/public/files/cogb_mach_zones.sld"
},
"opacity": 0.8,
"queryable": true,
"showInLayerControl": true
}
#
Options
#
Enabled
Set to false
to prevent the dataset from being configured in Pozi. The default value is true
.
"enabled": false,
This setting goes beyond simply hiding the layer as per the showInLayerControl
setting. It causes Pozi to completely ignore the dataset and make it unavailable as a layer or child dataset. In the case of the source being a catalogue, it will prevent Pozi from sending a GetCapabilities request.
#
Queryable
Control whether the features in this layer are queryable/selectable by the user clicking in the map.
"queryable": true,
#
Opacity
"opacity": 0.7,
#
Metadata
"about": {
"source": "National Public Toilet Map",
"organisation": "Australian Department of Health",
"url": "https://data.gov.au/dataset/ds-dga-553b3049-2b8b-46a2-95e6-640d7986a8c1"
},
#
Zoom Levels
"minZoom": 16,
"maxResolution": 4
#
Include Fields
"config": {
"spatial": {
"include": [
"ADD_EZI_ADDRESS",
"PROP_PROPNUM",
"PROP_STATUS",
"PLANNING PROPERTY REPORT"
]
}
}
#
Exclude Fields
Attributes from the source data can be hidden from the info panel display by specifying the fields in an exclude
array, nested under the spatial
setting.
"config": {
"spatial": {
"exclude": [
"type",
"subtype"
]
}
}
#
Transformers
#
Rename and Order Fields
"transformer": {
"renameAndOrderFields": [
{
"wetland_no": "Wetland Number"
},
{
"name_main": "Name"
},
{
"name_alt": "Name (Alternate)"
},
#
Garbage
If the source dataset complies with the OpenCouncilData waste data spec, Pozi will use the information in the table to calculate and display the next waste collection date.
"transformer": {
"pointOnSurface": true,
"garbage": true,
"renameAndOrderFields": [
{
"rubbish_next_pickup": "Next Rubbish Pickup"
},
{
"recycling_next_pickup": "Next Recycling Pickup"
},
{
"green_waste_next_pickup": "Next Organics Pickup"
}
]
}
#
Promote Details
Display the feature's attributes (which would normally be displayed in the Details panel of the child record) directly in within the parent, taking the place of the child title.
"promoteDetails": true
Only to be used when there is no requirement to view Location/Dimensions, Source or any child records.