This is a sample map of Albania. If you click on one of the colored regions, additional information will be displayed below the map. This can be HTML or simple text.
The map configuration can be seen here:
Download map
Copy the following text and click on "Import" in the plugin.
Map settings
Name | Value | Description |
---|---|---|
Region | Albania | 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 | 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} path:not([fill="#f5f5f5"]) { cursor: pointer; } |
|
HTML | <div id="{cssid}"> %%map%% <div class="click_value"> </div> </div> |
|
JavaScript Executed when a marker/region is clicked. Click value can be defined for each map element. |
jQuery("#" + cssid + " .click_value").html(click_value); |
Map elements (12)
Color | Name | Click Value |
---|---|---|
AL-12 | You clicked on Vlorë. | |
AL-11 | You clicked on Tirana. | |
AL-10 | You clicked on Shkodër. | |
AL-07 | You clicked on Kukës. | |
AL-06 | You clicked on Korçë. | |
AL-05 | You clicked on Gjirokastër. | |
AL-04 | You clicked on Fier. | |
AL-01 | You clicked on Berat. | |
AL-08 | You clicked on Lezhë. | |
AL-02 | You clicked on Durrës. | |
AL-09 | You clicked on Dibër. | |
AL-03 | You clicked on Elbasan. |
You can easily import this map to your plugin
Comments
If you need help or have questions, please leave a comment.