Map view¶
For .geojson files Octa shows a slippy map: OpenStreetMap
tiles in the background, feature geometries painted on top. Pan,
zoom, and switch between tiled and geometry-only rendering.

What you're looking at¶
Two independent layers, stacked:
- The basemap is OSM raster tiles, covering the whole world at zoom levels 0-19. Walkers (the egui slippy-map widget) fetches the 256×256 PNG tiles for whatever region is visible and stitches them into the background.
- The GeoJSON layer is the feature geometries from your file,
drawn on top via
ui.painter(). GeoJSON is a vector overlay; the basemap is independent.
This means you can pan to Japan even if your GeoJSON describes Germany. The map covers the world; the features are just stamps on top of it.
When the Map view appears¶
The Map view is the default for .geojson and .shp
(Shapefile) files. The Table view is still
available with one row per Feature, where properties become columns
and the __geometry column holds the feature's geometry as WKT.
Shapefiles read their geometry from the .shp and their attribute
columns from the sibling .dbf, so they plot exactly like GeoJSON.
.kml and .kmz files (Google Earth, Google My Maps) open in the Map view
too: one row per placemark, with lines and polygons drawn whole. A .gpx
file (GPS tracks) opens in the Table view with one row per point, and
View -> Map plots those points. See
Supported formats.
Plotting any table with coordinates¶
You don't need GeoJSON to use the map. Open any tabular file
(CSV, Parquet, Excel, ...) that has a latitude and a
longitude column and the View -> Map entry lights up. Octa
recognises columns named lat / latitude and
lon / lng / long / longitude (any case) as long as their
values are numbers in the valid coordinate ranges, and draws one
point per row.
If Octa picks the wrong columns, the Map toolbar shows two small Lat / Lon dropdowns: change either one and the points (and the map centre) update immediately. Rows with a missing or non-numeric coordinate are simply skipped.
Colouring countries from a table¶
A table with a column of countries and no latitude/longitude pair lights up View -> Map too and opens in Countries mode: every country is painted by the rows that name it, like a choropleth. When a table has both kinds of column, the Points / Countries radios in the toolbar switch between the two.
Three dropdowns steer it:
- Country is the column that names the country. Octa picks the first text column whose values mostly name a country; change it if that is the wrong one.
- Value is the number that colours the country. (count rows) needs no number and colours by how many rows name the country.
- Combine is how several rows of one country become one value: Sum, Avg or Count. It is greyed while Value is (count rows), since counting needs no combining.
A country is recognised from any of these, in any case, with or
without accents, and with punctuation read as a space (Côte d'Ivoire
and COTE D IVOIRE meet):
- an ISO code, two letters (
DE) or three (DEU); - the English name (
Germany); - the name in one of 24 other languages: Arabic, Bengali, German, Greek, Spanish, Persian, French, Hebrew, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Dutch, Polish, Portuguese, Russian, Swedish, Turkish, Ukrainian, Urdu, Vietnamese and Chinese (simplified and traditional);
- a common alias such as
USA,UK,HollandorBurma.
Word order is not folded, so Korea, Republic of is not
Republic of Korea; the common forms are covered by the aliases.
The colours are the same scale the Chart heatmap uses: light to dark blue, or blue through white to red when the values cross zero. A legend under the map shows the smallest and largest value. Hover a country to see its name, its value and its row count. Countries that no row names stay as faint outlines.
Values that name no country are listed under Not matched to a country: with their row counts, the first 20 and then "and N more". Fix the spelling or use an ISO code and the list shrinks.
The view starts zoomed out on the whole world.
The outlines are bundled with Octa, so Countries mode works offline and downloads nothing. They are countries only, at a coarse scale: no states, provinces or small islands. Made with Natural Earth (public domain, naturalearthdata.com).
Toolbar¶
- Feature count shows the total number of features in the file.
- Tiles / Geometry only radio:
- Tiles uses the slippy-map background (default).
- Geometry only paints shapes on a blank canvas. Useful offline, or when you want to focus on the data without the map distraction.
- Reset view drops the current pan/zoom and recentres on the feature centroid.
Interaction¶
- Scroll wheel zooms in / out (plain wheel, no Ctrl needed).
- Double-click zooms in.
- Click-drag pans.
The default view centres on the centroid of every feature's coordinates so you start looking at the data, not at coordinate (0, 0) in the middle of the Atlantic.
Feature rendering¶
Geometry types and how they paint:
| Geometry type | Renders as |
|---|---|
Point / MultiPoint |
Filled circle (~5 px radius) |
LineString / MultiLineString |
Connected line segments |
Polygon / MultiPolygon |
Filled polygon with outline stroke |
GeometryCollection |
Recurses into members |
Rect / Triangle (rare) |
Treated as polygons |
The default palette is steel blue: a fill at low alpha so polygon interiors don't hide street labels underneath, plus a darker outline and point colour for contrast.
Polygon holes
Polygons with inner rings (holes, the second and subsequent
coordinate arrays in a Polygon definition) are stroked but
not cut out of the fill. egui's painter has no even-odd / winding
fill rule, so a polygon with a hole renders as a filled outer ring
with the hole boundary drawn as an outline. The semantic "this is
a hole" is preserved as a visible boundary, just not as a true
cut-out.
This is a deliberate v1 trade-off documented in the source. If your dataset depends heavily on cut-out rendering (lakes inside countries, etc.), consider visualising in a dedicated GIS tool.
Configurable tile provider¶
The default tile URL points at OpenStreetMap:
Change it under
Settings → Map → Tile URL template.
The template uses {z}, {x}, {y} placeholders for zoom level
and tile coordinates, so any XYZ-compatible server works.
OSM tile-usage policy
The default URL is fine for personal / development use. For production deployments or sites with non-trivial traffic, please honour the OSM tile-usage policy by pointing at a self-hosted or commercial tile provider (Mapbox, MapTiler, etc.).
An OSM attribution badge is rendered bottom-right when in Tiles mode; clicking it opens the OSM copyright page.
Offline / failed-tile fallback¶
When the network is down or the tile server is blocked, the map cannot fetch its tiles and would show a grey grid under the geometries.
With Settings → Map → Fallback to geometry
on (the default), Octa fetches one tile itself when a tab first shows
tiles. If the server does not answer, or answers with an error, the tab
switches to Geometry only and the status bar says why, for example
Map tiles could not be loaded (HTTP 403 Forbidden). Showing the geometry only.
Switch it off to keep the grey grid instead. Either way you can flip
between Tiles and Geometry only in the toolbar at any time; after
a fallback, switching back to Tiles does not check again.
The check sends the same user agent as the map (octa/<version>), as
the OSM tile usage policy
asks.
Table view fallback¶
Switch to View → Table to see the features as a flat table:
- The leading
__geometrycolumn holds the geometry as WKT, e.g.POINT(13.405 52.52),POLYGON((-5 -5, 5 -5, 0 5, -5 -5)). - Every property key across the feature collection becomes its own
Utf8column (in first-seen order).
This is the lens to use for SQL queries, where
SELECT name, __geometry FROM data WHERE population > 1000000
works as expected.
Limitations¶
- No editing. Map view is display-only; you can't add / move / delete features.
- No labels yet. Feature properties don't render as labels on the map.
- No clustering. A GeoJSON with 100k point features will render 100k circles.
- WKB / GeoPackage geometries don't open in the Map view. Only
.geojsontriggers it. GeoPackage opens in the Table view with WKB strings.
See also¶
- Settings → Map changes the default mode, tile URL, and fallback behaviour.
- Supported formats: GeoJSON covers what Octa parses and what it skips.