This is an example map of Central America:
The following screenshot shows how the same map looks like in our plugin:
Our plugin allows highlight the following countries on the Central America map:
- Belize
- Costa Rica
- El Salvador
- Guatemala
- Honduras
- Mexico
- Nicaragua
- Panama
It is also possible to set custom colors for North America, the Carribean and South America.
If you click on one of the regions, it will open the corresponding Wikipedia article in a new window. This is achieved by saving the URL in the click value for each region. To open a new window, we only need to add the following JavaScript code to our map template:
window.open(click_value);
The map configuration can be seen here:
Copy the following text and click on "Import" in the plugin.
Map settings
Name |
Value |
Description |
Region |
Central America |
List with all available regions |
Width |
auto |
Width of the map in pixel. 'Auto' means that the map is centered in the available width. |
Height |
auto |
Height of the map in pixel. 'Auto' means that the map is centered in the available height. |
Display mode |
Regions |
Specifies the display mode of the map. |
Border resolution |
Countries |
The resolution of the map borders. |
Tooltips |
On |
Allows to display a tooltip for highlighted map elements. |
Tooltips: Trigger |
focus |
The user interaction that causes the tooltip to be displayed. |
Tooltips: Use HTML |
Off |
Specifies if the tooltips should use HTML. This allows to customize the tooltips even more. For example, if this property is on, it is possible to display images wihtin the tooltip. |
Map template
CSS |
#{cssid} path:not([fill="#f5f5f5"]){
cursor: pointer;
} |
HTML |
<div id="{cssid}">
%%map%%
</div> |
JavaScript
Executed when a marker/region is clicked.
Click value can be defined for each map element.
|
window.open(click_value); |
Map elements (8)
Color |
Name |
Click Value |
|
MX |
http://en.wikipedia.org/wiki/Mexico |
|
GT |
http://en.wikipedia.org/wiki/Guatemala |
|
BZ |
http://en.wikipedia.org/wiki/Belize |
|
SV |
http://en.wikipedia.org/wiki/El_Salvador |
|
HN |
http://en.wikipedia.org/wiki/Honduras |
|
NI |
http://en.wikipedia.org/wiki/Nicaragua |
|
CR |
http://en.wikipedia.org/wiki/Costa_Rica |
|
PA |
http://en.wikipedia.org/wiki/Panama |
Comments
If you need help or have questions, please leave a comment.