markmarkoh / datamaps

Customizable SVG map visualizations for the web in a single Javascript file using D3.js
http://datamaps.github.io
MIT License
3.78k stars 1.01k forks source link

US with PR and VI #9

Closed designsbybrandon closed 8 years ago

designsbybrandon commented 11 years ago

I'm trying to map a companies locations and was wondering if it is it possible to have a US map that also displays Puerto Rico and the US Virgin Islands? I thought this might be the listing on the main page saying a build is available for "USA & Countries w/ dependencies" but I see no documentation on how to access this.

markmarkoh commented 11 years ago

I need to add PR/VI to the geoJSON that renders with the USA projection.

In addition, it'd be nice to specify your own geoJSON (you'd download a 3rd build with no map data, just the library).

designsbybrandon commented 11 years ago

Bringing back an old post, however, I managed to get PR to show up in a US render of the map (just by adding continent:"USA", to the datamaps-all.js file), Lat/Long coordinates are even working with this render. Was trying to do the same thing with the US Virgin Islands, but cant seem to find any reference in the file. They do however show on the sample maps -- do you know what ID they are set to?

zzweber commented 9 years ago

Hi designbybrandon,

Where did you add continent:"USA" in datamaps-all.js?