block by rveciana 9026255839233498dbe979ea69ad3af2

Mapping with Svelte: color scale

Full Screen

Second example of a map drawn with Svelte and the d3 projections. More than one path is created and colored using the d3-scale library.

Check this blog post from Geoexamples for more explanations.

To test it, clone the standard svelte template by

npx degit sveltejs/template svelte-app cd svelte-app

And copy the App.svelte file into the src directory.

index.html

App.svelte

bundle.css