Manage geoJSON files

GeoJSON is an open standard format designed for representing simple geographical features, along with their non-spatial attributes. It is based on JSON, the JavaScript Object Notation. You can upload GeoJSON files to MashZone NextGen to use in a custom map style.

All geoJSON files are stored in the following directory.

<MashZone NextGen installation>\apache-tomcat\webapps\mashzone\hub\dashboard\assets\geomap\{tenant}\vectormaps

To support multi-tenancy, you must replace {tenant} in the path above by the corresponding tenant name. If there are no tenants, default is used in place of {tenant} (tenant name). If a tenant does not have a folder, the shared folder is used.

By default, MashZone NextGen is shiped with a few default geoJSON files in the following path.

<MashZone NextGen installation>\apache-tomcat\webapps\mashzone\hub\dashboard\assets\geomap\default\vectormaps

The map styles are available in the Vector map widget and can be selected there by file name in the Template drop-down menu.

The following map style templates are included.

If you add you own map style templates, we recommend that all regions (features) defined should be polygons - all non-polygon regions (features) are ignored. The ID attribute is the default identifier for each region (feature). The data assigned to the map widget must contain a column with values matching the ID attribute. Hence any polygon without an ID attribute is also ignored. In case there is no data assigned, the vector map could be used to select a region and publish such a selection using the region ID.