GeoJSON

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

  1. Open the Import/Export panel
  2. Click the Import tab
  3. Drag and drop your .geojson or .json file
  4. 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

  1. Open the Import/Export panel
  2. Click the Export tab
  3. Select the layers you want to export
  4. Choose "GeoJSON" as the format
  5. 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.