Mango support GeoJSON files containing coordinates in WGS 84 (EPSG:4326) format.
Files can use either .json or .geojson extension.
Restrictions
Mango only supports one type of geometry feature per file.
GeoJSON containing multiple geometry types are handled in different ways, based on the first feature in the JSON.
- If the first feature is a point, points will be imported and all other features will be discarded on import.
- If the first feature is a polygon, polygons will be imported and all other features will be discarded on import.
- If the first feature is a line, line features will be imported, polygon features will be imported as line features, and points will be discarded on import.
Style data contained in the JSON will be discarded. After upload, you can style your data in the Layer Style panel.
GeoJSON Upload Errors
You may get a GeoJSON upload error if:
- Your data contains coordinates in a CRS other than WGS 84 (EPSG:4326)
- Your data contains a mix of geometries such as points, lines and polygons. This may cause import errors, discard some feature types, or display some features incorrectly.
- Your JSON data is incorrectly formatted.
- Your data is in TopoJSON format.