Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Adding Puerto Rico #55

Open
ididthis opened this issue Aug 6, 2015 · 6 comments
Open

Adding Puerto Rico #55

ididthis opened this issue Aug 6, 2015 · 6 comments

Comments

@ididthis
Copy link

ididthis commented Aug 6, 2015

I've got the shape of Puerto Rico figured out, and it is output on the map, but it is over New Mexico. How would I position it just off of Florida?

@kjrhody
Copy link

kjrhody commented Sep 21, 2016

I actually need to add Puerto Rico as well. Did you end up figuring this out?

@kcaran
Copy link

kcaran commented Sep 21, 2016

I have a pull request that allows you to specify which territories you'd like to include ('PR', 'VI', 'GU', 'AS', 'MP'). The terrBoxX and TerrBoxY values move the territory labels to where you want them.

https://github.com/kcaran/us-map

Example here:
http://www.kcaran.com/us-map-example/

@kjrhody
Copy link

kjrhody commented Sep 22, 2016

Thanks! Do you have a quick example showing how to implement the terrBoxX and terrBoxY variables in the code?

@kjrhody
Copy link

kjrhody commented Sep 22, 2016

Never mind, I implemented it just fine using the following:

            'includeTerritories': [ 'PR' ],
            terrBoxX: 600,
            terrBoxY: 525,

Thank you, it works great! Hope that it's incorporated into the main package in the future.

@adamlesniak
Copy link

+1 for implementing that onto master - as it's US state.

@kjrhody
Copy link

kjrhody commented Mar 22, 2017

Has anyone found a way to move the labels for individual territories, rather than just the whole list? I tried writing some code to implement this myself but figured I'd see if anyone else had given it a try.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants