Skip to content

Instantly share code, notes, and snippets.

@XavierGimenez
Last active December 12, 2018 12:16
Show Gist options
  • Save XavierGimenez/66bf5804399f1f4f3e7025f0ce66badd to your computer and use it in GitHub Desktop.
Save XavierGimenez/66bf5804399f1f4f3e7025f0ce66badd to your computer and use it in GitHub Desktop.
Fitting maps automatically with vega.js

Creating maps with vega.js. Simple example of how to use the "fit" and "size" properties of the projection object, so centering/scaling the map is done automatically

Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment