Maps made easy

Map examples

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.

Clickable Map of Canada

This is a clickable map of canada:

The highlighted regions include the provinces Alberta, British Columbia, Manitoba and Saskatchewan and the three territories Northwest Territories, Nunavut, and Yukon. The provinces New Brunswick, Newfoundland and Labrador, Nova Scotia, Ontario, Prince Edward Island and Quebec are not highlighted.

The map contains JavaScript code that is executed when a region is clicked. It opens a new window with the corresponding Wikipedia article of the clicked region. The following (simple) code is stored in the map template:

window.open(click_value);

The click value can be defined for each region individually. In this example it contains the URL to the article.

Additionally the map has a custom cursor for all highlighted regions. The following rule was added to the map template:

#{cssid} path:not([fill="#f5f5f5"]) {
   cursor: pointer;
}

This will set the “pointer” cursor for all regions that have another color than “#f5f5f5”. The “dataless region color” defines the color for all regions that were not highlighted. In this example the color is set to “#f5f5f5”. Thats why the cursor stays normal when moving the mouse pointer over these regions.

This specific cursor-rule is useful to simulate a link. It is not necessary, but a good way to indicate that the user can interact with this part of the map. The map can easily be imported to the plugin.

Name Value Description
Region Canada 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 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.
CSS
#{cssid} path:not([fill="#f5f5f5"]) {
 cursor: pointer;
}
HTML
<div id="{cssid}">
  %%map%%
</div>

JavaScript

Executed when a marker/region is clicked.

Click value can be defined for each map element.

window.open(click_value);
Color Name Click Value
CA-YT http://en.wikipedia.org/wiki/Yukon
CA-BC http://en.wikipedia.org/wiki/British_Columbia
CA-AB http://en.wikipedia.org/wiki/Alberta
CA-SK http://en.wikipedia.org/wiki/Saskatchewan
CA-NT http://en.wikipedia.org/wiki/Northwest_Territories
CA-MB http://en.wikipedia.org/wiki/Manitoba
CA-NU http://en.wikipedia.org/wiki/Nunavut

Comments

If you need help or have questions, please leave a comment.


Search

Responsive? Yes!

Our maps are fully responsive. They automatically fit into the available width. Try it by resizing your browser window.

Did you know…

  • All examples are importable to your plugin.
  • We extend our set of examples from time to time. If you think there is an example missing, write us a message and we will try to add it!

User reviews

  • Best map-plugin I could find.
  • Great support. Real fast response. This was exactly what I needed. Very flexible and useful.
  • Was waiting for plugin like this for ages! Customer support is also great.
  • Customer support is excellent and very quick. I have no hesitation in recommending this product.

Example for a sidebar map


All maps can also easily be added to your sidebar.