Skip to content

Instantly share code, notes, and snippets.

@jkeefe
Created October 8, 2021 20:34
Show Gist options
  • Save jkeefe/8d82e4f915524df48e27ebced2efd7cc to your computer and use it in GitHub Desktop.
Save jkeefe/8d82e4f915524df48e27ebced2efd7cc to your computer and use it in GitHub Desktop.
Make SVG maps with more than one layer
hpgraphic:
npx mapshaper -i ./src/data/latest-mercator.geojson ./src/data/states/us-state-innerlines.geojson combine-files \
--rename-layers counties,lines \
--style target=lines stroke='#a0a0a0' stroke-width=0.5 \
-proj albersusa \
-o target=counties,lines format=svg ./src/data/for_hp.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment