svelte-geo

A basic map library for svelte projects, built using D3.js

Minimum Viable Map

The map inherits the size of the container you put it in. The bounding boxes for the layers are calculated and the projection is generated to fit automatically.

See the REPL

Using Projections

Color and Style

Clickable Areas

Selecting Areas

Interacting with Layers

Zooming

Adding a Tooltip