Created: 08/12/2011
By: LGLab
www.motionflashdesigns.com
Thank you for purchasing my theme. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!
To add the map to your website, open the index.html for the version you have chosen, and start by importing the fonts.css and map.css withing the head tag of your site:
Then import all the js files within the head tag as well:
Make sure to also copy and paste all these files in your website directory keeping the same structure relative to the page you want to load the map into.
Finally copy/paste the mapWrapper div and its content where you want to include the map on your page:
The map's original dimensions are 930px wide by 590px high, try to keep as close to this ratio when resizing the map. To change the size open the usaMapSettings.xml file located in the xml folder, and at the top adjust the width and height to your desired ones:
If you wish to disable some of the states, you can choose a different color for those by adjusting the offColor parameter in the xml file:
You can change the stroke color for the map by adjusting the strokeColor parameter with your color:
The simple version of the map navigates to an external URL when a state is clicked, you can however chose to display some text in a side bar instead, to do so set the useSideText parameter to true and adjust the textAreaWidth and textAreaPadding parameters accordingly:
If you choose to use the version with the text, you can set a default text content when the map first loads before a user clicks any state. To do so update the text content within the CDATA of the defaultSideText node:
In the xml file, each state is defined within a stateData node, everything within each of these tags belongs to that state. The first part of the stateData nodes include parameters for that particular state which you can adjust:
stateName: The text that will appear in the tooltip.
url: The URL to navigate to when a state is clicked in the simple version.
stateMode: Determines if that state is active or not, set to OFF to disable a state.
initialStateColor: The default color for that state.
stateOverColor: The color for that state when the user mouses over it.
stateSelectedColor: The color for that state when the user has clicked it.
Finally for each state, if you have chosen the version of the map with side text, you can change that text for each state within the CDATA of each stateData tag: