Locator Maps » Version 3.0

ID #1050

How can I change the color of specific states?

Open the usa_locator.xml configuration file in any code/text editor. In the <map_data> of the  usa_locator.xml you can find the following lines:

<color_map>0x04abf2</color_map>
<color_map_over>0x0000cc</color_map_over>

The first parameter identifies the color of a given region in the normal state, while the second parameter sets the highlighted state color. The colors are specified as hexadecimal values.

You can learn hexadecimal codes of various colors in any graphical editor, like Photoshop, Corel Draw or in various online color picker tools. Here are some of them:

http://www.colorpicker.com
http://html-color-codes.com
http://www.w3schools.com/html/html_colors.asp

Don't forget you must keep the 0x in front of the color code.

After changing the XML file, save it and upload to your website.

Multi-colored map of the USA

Tags: -

Related entries:

Last update: 2011-09-10 19:17
Author: Fla-shop Team
Revision: 1.1

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry