This is an interactive map of Africa without showing the other continents:
The default map of Africa shows all surrounding continents. To hide all of them, you will an additional CSS rule. If you want to add it to an existing map, then follow these steps:
- Open your map in the map builder
- Click on “Map Template”.
- Append the following CSS to your existing styles:
#{cssid} svg g:nth-child(1) > g:nth-child(1) > path:nth-child(n+1):nth-child(-n+518) {
display: none;
}
- Click on “Update Preview” to see the changes.
This will manually hide all elements within the SVG graphic that belong to the other continents. If you haven’t created a map yet, you skip the steps from above and import the following:
Copy the following text and click on "Import" in the plugin.
Map settings
Name |
Value |
Description |
Region |
Africa |
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 |
350 |
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} {
}
#{cssid} svg g:nth-child(1) > g:nth-child(1) > path:nth-child(n+1):nth-child(-n+518) {
display: none;
} |
HTML |
<div id="{cssid}">
%%map%%
</div> |
JavaScript
Executed when a marker/region is clicked.
Click value can be defined for each map element.
|
|
Map elements (0)
Color |
Name |
Click Value |
Empty table |
Comments
If you need help or have questions, please leave a comment.