Turn a GeoJSON into an interactive map
A GeoJSON file is a list of features with geometry and properties. On its own it is text; an interactive map is what people can actually read. Spatly ingests a GeoJSON by upload or from a URL, samples every field for its range and categories, and draws a styled layer you can pan, zoom, filter and click.
From there you style by data: a colour ramp classified into quantiles or natural breaks, an interpolated scale, or a categorical palette keyed to a field. Size circles by a measure, extrude polygons into 3D, add labels and icons from the Spatly mark kit, and turn on a popup that reads the feature's properties. Files above five thousand features are served as vector tiles automatically, so a large layer stays smooth. The map below is a real published Spatly surface built from open data.
When it looks right, publish it as a link or an embed, or fold it into a story chapter or a dashboard widget. The GeoJSON keeps refreshing if you bound it to a URL.
A century of great earthquakes, 1,618 USGS events styled and filtered from GeoJSON. This is a real published Spatly surface, not a screenshot.
How to turn a GeoJSON into an interactive map
- Step 1
Upload or link the GeoJSON
Drag the file in, or paste a URL that Spatly re-fetches on an interval. It parses into PostGIS and reports the feature count, geometry type and field stats.
- Step 2
Style by a field
Pick classified, interpolated or categorical colour, size by a measure, add labels and a popup. Preview updates as you tune the ramp and breaks.
- Step 3
Publish or embed
Publish the map, copy the embed snippet, or reuse the styled layer inside a story, slide or dashboard.
Bring the data you already have
Spatly ingests it into PostGIS, samples the fields for ramps and categories, and serves GeoJSON or vector tiles depending on size. Every source keeps its refresh policy, cache and health.
Embed this exact surface
Paste one script tag into any page. The map mounts where the tag sits, resizes to its content, and needs no build step.
<script src="https://spatly.io/embed.js" data-spatly="dVdGXT779Y" data-height="640"></script>
Posts spatly:ready, spatly:resize, spatly:expand and spatly:select. Embed docs
Good to know
- How large a GeoJSON can Spatly handle?
- Files up to five thousand features are served as a GeoJSON endpoint; above that Spatly serves vector tiles from PostGIS, so million-feature layers still pan smoothly.
- Can the GeoJSON stay live?
- Yes. Bind a URL with a refresh interval and the layer re-fetches on a schedule, with a cache shared by every viewer.
Turn a GeoJSON into an interactive map in Spatly.
Start from a basemap and a file, or open a template and take it apart. Every plan includes Spatly embeds, the REST API and the MCP server.
41.0082°N 28.9784°E · z 11.3 · ⟂ 0°