GeoJSON
GeoJSON is a standard format for encoding geographic data in JSON. It's widely used in web mapping and is the internal format used by MapEdit.
Importing GeoJSON
- Open the Import/Export panel
- Click the Import tab
- Drag and drop your .geojson or .json file
- Features are automatically added to a new layer
Supported Geometry Types
- Point — Single locations
- MultiPoint — Multiple related points
- LineString — Paths and routes
- MultiLineString — Multiple related lines
- Polygon — Areas with optional holes
- MultiPolygon — Multiple related polygons
- GeometryCollection — Mixed geometry types
Feature Properties
GeoJSON features can have arbitrary properties. MapEdit preserves these properties and uses them for:
- Feature names (from "name" property)
- Feature descriptions (from "description" property)
- Data-driven styling (classify by any property)
- Style detection — SimpleStyle-spec properties (fill, stroke, marker-color) are automatically applied as feature styles on import
- Export back to GeoJSON
Exporting to GeoJSON
- Open the Import/Export panel
- Click the Export tab
- Select the layers you want to export
- Choose "GeoJSON" as the format
- Click Export
What Gets Exported
When exporting to GeoJSON, MapEdit includes:
- All geometry coordinates
- Feature name and description
- All custom properties
- Style properties (fillColor, strokeColor, etc.)
- SimpleStyle-spec properties (fill, stroke, stroke-width, marker-color) for compatibility with GitHub, geojson.io, and Mapbox
Use Cases
- Web development — Load directly in Leaflet, Mapbox, MapLibre
- Data exchange — Share with developers and analysts
- Backup — Save a portable copy of your data
- Version control — Track changes in git
GeoJSON uses WGS84 coordinates (latitude/longitude). All imported and exported GeoJSON is in this coordinate system.