GeoDataViewer
Menu
Launch Studio
Theme

LineString output · browser-based

Free Online GeoJSON Polyline Draw Tool

Draw GeoJSON polylines (LineString) on an interactive map and export as GeoJSON. Click to add vertices, double-click to finish, copy or download GeoJSON LineString geometry. Free GIS line drawing tool, no upload.

Polyline guide

What is a GeoJSON Polyline?

A GeoJSON LineString (commonly called a Polyline) is a sequence of two or more connected coordinate points forming a linear path. It is defined as 'type': 'LineString', 'coordinates': [[lng1,lat1], [lng2,lat2], ...]. Lines are used for roads, rivers, trails, flight paths, GPS tracks, routes, and any linear geographic feature.

How to draw
To draw a Polyline, select the Polyline mode. Click on the map to add each vertex. An orange preview line shows the path as you extend it. Double-click to finish the line. The resulting GeoJSON LineString contains all clicked vertices in order.
Common uses
LineString geometry is essential for route mapping, GPS track visualization, transportation networks, utility corridors, boundary lines, and any application that needs to represent linear geographic features.
GeoJSON output
This drawing mode is exported as standard GeoJSON LineString geometry inside a FeatureCollection.

A GeoJSON.io alternative with more drawing shapes

GeoDataViewer Draw is a free browser-based GeoJSON editor for creating points, lines, polygons, arrows, sectors, and smooth curves. It keeps a familiar map-and-JSON workflow while adding specialized shapes that standard GeoJSON editors often do not expose as drawing tools.

GeoDataViewer is not affiliated with geojson.io. Both tools are useful: choose the editor that matches the geometry types and workflow you need.

Capability GeoDataViewer Draw geojson.io
Drawing modes 12 standard and extended drawing types. Core point, line, polygon, rectangle, and circle tools.
Live JSON editing Editable FeatureCollection with immediate map preview. Editable GeoJSON with a synchronized map.
Browser-local processing Drawing, editing, and export stay on your device. Browser-based editing for GeoJSON workflows.
Import and export Import JSON or GeoJSON, then copy or download GeoJSON. Import and export common spatial data.
Extended arrows and curves Straight, diagonal, dove-tail, double-arrow, curve, and sector modes. Focused on common map-drawing shapes.

All 12 GeoJSON drawing types

Draw standard Point, LineString, and Polygon features plus directional arrows, sectors, smooth curves, and gathering areas. Every extended symbol is exported as interoperable GeoJSON with its original drawing mode preserved in the feature properties.

Basic Geometry

Core GeoJSON shapes for locations, routes, boundaries, and fast sketches.

Directional Arrows

Polygon symbols that add direction, movement, and tactical intent to a map.

Curves & Areas

Smooth lines and specialized areas for coverage, assembly, and natural forms.

Draw, edit, and export GeoJSON in four steps

  1. 01

    Choose a drawing tool

    Select any of the 12 geometry and symbol types from the toolbar.

  2. 02

    Draw on the map

    Click, drag, or place control points to create the selected geometry.

  3. 03

    Select and edit

    Use Select / edit to move map vertices, adjust advanced-shape control points, or refine the FeatureCollection in the live JSON editor.

  4. 04

    Export GeoJSON

    Copy the result or download a standards-based .geojson file.

Map editing

Select and edit features directly on the map

Select / edit is the first item in the drawing toolbar (on the left on desktop and above the map on smaller screens). Activate it, click an existing feature, and use the visible handles to reshape the geometry without rewriting its coordinates by hand.

  1. 01

    Activate Select / edit

    Choose the first item in the drawing toolbar (on the left on desktop and above the map on smaller screens), then click an existing feature on the map.

  2. 02

    Adjust the geometry

    Drag ordinary GeoJSON vertices or the semantic control points shown for an advanced arrow, curve, sector, or area.

  3. 03

    Finish or cancel

    Press Enter to finish, Escape to restore the geometry from the start of the edit, or click empty map space to finish.

  4. 04

    Delete when needed

    Press Delete or Backspace to remove the selected feature. Switching to another drawing tool also finishes the edit.

Standard GeoJSON geometry

Map handles support Point, LineString, Polygon, MultiPoint, MultiLineString, and MultiPolygon. GeometryCollection remains visible and editable in the JSON panel, but it has no map handles.

Advanced shapes

Arrows, curves, sectors, and gathering areas retain semantic control points while they remain editable, so you can adjust their intent instead of dragging every vertex of the generated geometry.

Editable or final download

Editable GeoJSON preserves advanced-shape controls for reimport. Final GeoJSON contains the finished standard geometry without control metadata; when reimported, it uses ordinary vertex editing.

Your data stays in your browser

The drawing canvas, GeoJSON parser, editor, and download flow run locally in your browser. GeoDataViewer does not upload the geographic features you draw or paste into this page.

Polyline drawing FAQ

What is a GeoJSON LineString?

A LineString is an array of two or more coordinate pairs that form a connected path. It requires at least 2 points.

How do I finish drawing a line?

Double-click on the map to finish the line. The tool automatically generates the GeoJSON output.

How many vertices can I add?

There is no limit. Each click adds a vertex to the line.