Navigation
Records in this category
- 04. What are the requirements to install and use Locator Maps?
- 19. Is it possible to install Locator Map to WordPress (Joomla, Drupal, other CMS) website?
- 18. Is it possible to update the map dynamically with a PHP/Perl/ASP script generating an appropriate XML "on the fly"?
- 14. How to change the background color of the Locator Map?
- 01. How do I install the Locator Map on a webpage?
- 15. How to make the background of the map transparent?
- 16. How to set an image as a background for the map?
- 11. How to change the names on the Locator Map (countries, states, regions etc)?
- 08. How to change the colors of each region on the map?
- 09. How to change the colors of texts on the map?
- 05. How to open some URL when a user clicks on the map?
- 07. How to open a URL in a new window?
- 12. How to display some data in a popup window when a user moves the mouse over a region?
- 13. Is it possible to display a formatted text in a popup window?
- 10. How to change colors of a popup window?
- 20. What is the difference between Locator Map 3.0 and 4.0?
- 17. How to display some data on the page when a user clicks a region?
- 02. How to install Locator Map 4.0 to my website (detailed description)?
- 03. Can I test the map locally?
- 06. I tried to add a link to a state in the map, but it is not working. Why?
Tags
Locator Maps » Version 4.0
08. How to change the colors of each region on the map?
Open the locator_map.xml configuration file in any text editor. In the <map_data> of the locator_map.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.

Tags: -
Related entries:
- 14. How to change the background color of the Locator Map?
- 11. How to change the names on the Locator Map (countries, states, regions etc)?
- 09. How to change the colors of texts on the map?
- 05. How to open some URL when a user clicks on the map?
- 07. How to open a URL in a new window?
Last update: 2011-05-19 14:12
Author: Fla-shop Team
Revision: 1.3
You cannot comment on this entry