🗺️

GeoJSON Editor

Create, edit, and visualize GeoJSON data with an interactive map. Draw points, lines, and polygons, edit coordinates, and export your geographic data.

Practical Guide
Loading map...
Features: 0

❓What is GeoJSON?

GeoJSON is a JSON format for geographic features and coordinates. This editor accepts FeatureCollections, draws simple points, lines, and polygons on a map, and lets you inspect or edit the JSON.

✨Features

🗺️

Interactive Map

View imported GeoJSON features on an interactive Leaflet map.
✏️

Draw Features

Draw points, lines, and polygons directly on the map.
🔧

Edit Features

Move or delete simple map features; edit properties in JSON.
📝

JSON Editor & Real-time Sync

Edit valid JSON with syntax highlighting; the map updates and the table remains read-only.

🎯Application Scenarios

GIS Applications

Create and edit geographic data for GIS applications, mapping services, and spatial analysis tools.

Web Mapping

Generate GeoJSON data for web mapping libraries like Leaflet, Mapbox, and Google Maps API.

Location Services

Define service areas, delivery zones, and geographic boundaries for location-based services.

Data Visualization

Create geographic datasets for data visualization, choropleth maps, and interactive dashboards.

📚Practical Guide

GeoJSON Format Specification

GeoJSON is based on JSON and follows RFC 7946 specification. It uses WGS84 coordinate reference system (CRS:84). Coordinates are stored as [longitude, latitude] arrays. The format supports FeatureCollection (array of features), Feature (geometry + properties), and Geometry objects. Each geometry has a 'type' field (Point, LineString, Polygon, etc.) and a 'coordinates' field containing coordinate arrays.

Leaflet Integration

The editor uses Leaflet.js, an open-source JavaScript library for interactive maps. Leaflet provides map rendering, tile layers (OpenStreetMap), and interaction controls. The leaflet-draw plugin enables drawing and editing features on the map. Features are rendered as Leaflet layers (Marker, Polyline, Polygon) and synchronized with GeoJSON data structure.

Real-time Synchronization

Valid changes in the JSON editor update the map and read-only table. Drawing or editing simple features on the map updates the JSON. Invalid text remains in the editor until corrected.

Coordinate System and Validation

The editor checks the FeatureCollection shape and numeric coordinates before displaying data. It does not perform full RFC 7946 validation or automatically close polygon rings.

💬Frequently Asked Questions

❓What is GeoJSON and what is it used for?
GeoJSON is a JSON-based format for encoding geographic data structures. It's used for: 1) Web mapping applications (Leaflet, Mapbox, Google Maps); 2) GIS software data exchange; 3) Geographic APIs and services; 4) Data visualization and dashboards; 5) Location-based services; 6) Spatial analysis and geospatial databases. GeoJSON is human-readable, easy to parse, and widely supported across platforms.
💬What coordinate system does GeoJSON use?
GeoJSON uses WGS84 (World Geodetic System 1984) coordinate reference system, also known as EPSG:4326. Coordinates are stored as [longitude, latitude] arrays. Longitude ranges from -180° (west) to 180° (east), latitude from -90° (south) to 90° (north). This is the same coordinate system used by GPS and most web mapping services.
🔍How do I draw a polygon on the map?
Click the 'Draw Polygon' button, then click on the map to place vertices. Click the first point again or double-click to finish the polygon. You can edit the polygon by clicking 'Edit Mode' and dragging vertices. To delete, click 'Delete Mode' and click on the feature.
💡Can I import existing GeoJSON files?
Yes. Open a .geojson or .json file containing a FeatureCollection. Its features appear on the map, and the view fits their bounds when available.
📚Is my data stored on a server?
The selected GeoJSON file is processed in your browser and is not uploaded by this tool. Map tiles are requested from OpenStreetMap, so the map view requires network access.

💡How to use

1️⃣

Open or draw

Open a .geojson or .json FeatureCollection, load the sample, or draw a point, line, or polygon on the map.
2️⃣

Edit the data

Use map controls to move or delete simple features. Edit properties and coordinates in the JSON tab; the table is read-only.
3️⃣

Export

Check the map and JSON, then save or copy the FeatureCollection. Invalid JSON must be fixed before export.

🔗Related Documents

📝Update log

📌v1.1.261116
v1.1.261116

Fixed map editing, JSON synchronization, and framing of imported data.

User Comments

0 / 2000
Loading...