Home

Awesome

logo

npm jsdeliver license code size

Based on maplibre-gl, geoverview is a tool for giving a quick and easy geographic overview of any geojson (and the information it contains). Geoverview is particularly suitable for working within Observable.

geoverview

How to use?

It is very simple, geoverview contains only one function. In Observable, it is used in the following way. You need 3 cells:

// Load geoverview
view = require("geoverview@1.2.1").then((f) => f.view)
// add a geojson (or topojson) file
data = FileAttachment("something.geojson").json()
// and view
view(data)

Automatically, the map and your geojson will be displayed. So simple...

Demo

Live demo on this page or this Observable notebook.

Options

You can add some options like this:

view(data, {width:800, renderWorldCopies:false})

Option list:

Things to fix/improve

See all issues.

Contribute

If you want to improve geoverview, feel free to post issues (bugs, suggestions...) and suggest pull requests.