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.

Map of Germany with hidden neighboring countries

This is a sample map of Germany and demonstrates how neighboring countries can be hidden.

We use the following technique to hide regions on our map:

  1. First we have to define a dataless region color that has to be different from the color for our visible regions. For example, we can pick “#fcfcfc”.
  2. The second step is to color all regions that we want to display on our map.

Once we are done, we can apply a CSS rule to hide all unnecessary regions. We have to add the following rule to the CSS of our Map Template:

#{cssid} path[fill="#fcfcfc"] { 
   display: none;
}

If we click on the “Update Preview” button, the map should have some hidden regions now.

Please note that the hiding only works in region mode. The other modes won’t allow you to add custom colors for regions.

The map configuration can be seen here:

Name Value Description
Region Germany 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 Provinces The resolution of the map borders.
Tooltips Off Allows to display a tooltip for highlighted map elements.
Tooltips: Trigger none 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[fill="#fcfcfc"] { 
  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.

Color Name Click Value
DE-NI
DE-NW
DE-RP
DE-HE
DE-BW
DE-BY
DE-TH
DE-SN
DE-ST
DE-BB
DE-BE
DE-MV
DE-SH
DE-HH
DE-HB
DE-SL

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.