This is a sample map of California showing three markers of San Francisco, Los Angeles and San Diego:
If you click on one of the markers, it will open the corresponding Wikipedia article. The URL is stored for each marker in its “click value”. The Map Template allows to execute custom JavaScript code, when the user clicks on one of the markers. The example from above uses the following JavaScript to open a URL on the same page:
window.location = click_value;
The map configuration can be found here:
Copy the following text and click on "Import" in the plugin.
Map settings
Name |
Value |
Description |
Region |
California |
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 |
Markers |
Specifies the display mode of the map. |
Border resolution |
Provinces |
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 |
On |
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} {
} |
HTML |
<div id="{cssid}">
%%map%%
</div> |
JavaScript
Executed when a marker/region is clicked.
Click value can be defined for each map element.
|
window.location = click_value; |
Map elements (3)
Color |
Name |
Click Value |
|
San Francisco |
http://en.wikipedia.org/wiki/San_Francisco |
|
Los Angeles |
http://en.wikipedia.org/wiki/Los_Angeles |
|
San Diego |
http://en.wikipedia.org/wiki/San_Diego |
Comments
If you need help or have questions, please leave a comment.