Skip to content

A template to make mapping easier. Along with the map data file there is province data to make this quick to get visualization going with Raphael.js or D3.js

Notifications You must be signed in to change notification settings

pippinlee/canada-map-svg

Repository files navigation

Canada Map SVG

canada

DEMO: pippinlee.com/canada

This project is a template to make starting mapping projects easier.

Included

  • Original SVG map of Canada canada-map-svg.svg
  • Original Raphael.js conversion of SVG file canada-map-svg.js
  • Additional provincial data included population and premier to get you started province-data.js
  • A sample script.js file to see what you can make with the above template

Example of using the province-data.js file to get the capital of Ontario: CAON.info.capital

Tools used

I originally got the Canada map SVG from here

If you don't like the size of the current SVG data in the canada-map-svg.js file you can resize it. I've added the SVG here as canada-map-svg.svg which you can resize.

There are a number of ways to do this. The options include using this great online SVG editor.

The second option is the great command line tool SVG Resizer.

To use your SVG file with Raphael.js you can use this handy site readysetraphael.com which will let you upload an SVG and spit out a the .js file you need.

About

A template to make mapping easier. Along with the map data file there is province data to make this quick to get visualization going with Raphael.js or D3.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published