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

Split a state in two #65

Open
krisfields opened this issue Nov 29, 2016 · 2 comments
Open

Split a state in two #65

krisfields opened this issue Nov 29, 2016 · 2 comments

Comments

@krisfields
Copy link

I need to have the top half of one state be different than the bottom half of the state. Can anyone think of any way I can achieve this? Basically, the color of the top half should be different than that of the bottom half and the action that happens when clicked also needs to be different.

@mvtenney
Copy link

mvtenney commented May 2, 2017

You will have to edit the js file with new SVG paths to create 2 states out of the one, this is pretty easily achievable with illustrator CC, as you can cut the existing layer for the state into 2 layers, and it will export the paths for you.

@kjrhody
Copy link

kjrhody commented May 2, 2017

Agreed. You can also do this with Inkscape or the Chrome extension Boxy SVG which works really well. Based on the path names you use, you'll also need to modify the list of states/paths in the jquery.usmap.js file.

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

3 participants