All map examples were generated with our plugin. Most examples can be imported directly to your plugin. A download button can be found at the end of each example page.
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:
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:
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.
If you want to use this map, you can simply click on the download button below. This map mainly uses two techniques: CSS for a custom crop and CSS to hide regions. If you import the map, you will find the CSS in the map template.
If you pick the region Southern Europe, you will see all surrounding countries of France, Spain and Portugal. To hide all of them, you will need an additional CSS rule. If you want to add it to an existing map, then follow these steps: