This is an interactive map of Andalusia:
This map has a custom crop. Normally the plugin only allows to focus the map on Spain. If you add a few lines of CSS, you can create the map from above. The needed CSS and HTML can be found in the box below (under “Map Template”). Even if you don’t understand the CSS and HTML, you can simply import this map by clicking on the download button.
If you have more questions about custom crops, write us a message!
Copy the following text and click on "Import" in the plugin.
Map settings
Name |
Value |
Description |
Region |
Spain |
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 |
/* Changing the default cursor */
#{cssid} circle {
cursor: pointer;
}
/* CSS for custom crop: */
#{cssid} {
overflow: hidden;
position: relative;
width: 100%;
}
#{cssid}:after {
content: "";
display: block;
padding-top: 61.7%;
}
#{cssid} .map_wrap {
width: 320%;
height: 160%;
margin-left: -129%;
margin-top: -54%;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
} |
HTML |
<div id="{cssid}_click_value">
</div>
<div id="{cssid}">
<div class="map_wrap">
%%map%%
</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 (8)
Color |
Name |
Click Value |
|
Cádiz |
|
|
Almería |
|
|
Córdoba |
|
|
Granada |
|
|
Huelva |
|
|
Jaén |
|
|
Málaga |
|
|
Seville |
|
Comments
If you need help or have questions, please leave a comment.