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 using an Icon Font

This text will change, if you click on one of the markers!

This is a sample map showing custom markers. This can be achieved by using the display mode “text markers”. This mode normally displays text instead of circles at the marker position. If you replace the default font of the text markers by an icon font, we will be able to use icons on our map. In this example, we used the icon font FontAwesome.

In the following, we will describe what has to be changed in the map template to get icon markers. This is what we have to do:

  1. This seems to be obvious, but we have to make sure that the display mode is set to “Text” (right column, third box from top). Otherwise, this technique won’t work.
  2. Then, we have to make sure that our icon font is available on the page where the map will be inserted. Therefore, we have to add the following line to the HTML of our map template:
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
  3. The next step is to change the default font of our text markers. We achieve this by adding the following lines to our CSS:
    #{cssid} text {
      font-family: FontAwesome;
      fill: #534C92;
    }
    
    This sets the new font. The fill property can be used to change the font color. We used a purple color (#534C92)
  4. We apply the changes on our map template by pressing the “Update template” button. The map preview should reload now.

Then we are all set and can start to add text markers. This is the easiest way to add new markers:

  1. FontAwesome has a cheatsheet for their icons. Pick one icon that you want to add to your map. Use your mouse to select one of the icons and copy it to the clipboard (right click -> copy). If you prefer, you can also copy this one:
  2. If you go back to your map, you can click on “Add Text” to add a new marker.
  3. Set a “Text Location”. For example, we could use “New York”.
  4. The “Text Label” contains the text that will be displayed on the map. We insert the icon from the clipboard (right click -> paste). Note that the displayed text will look broken, but this is normal.
  5. If we click on “Add”, we should see the marker on our map.

The map configuration can be seen here:

Name Value Description
Region World 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 Text 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 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.
CSS
#{cssid} text {
  font-family: FontAwesome;
  fill: #534C92;
}
HTML
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

<div id="{cssid}">
  %%map%%
  <div class="click_value">
    This text will change, if you click on one of the markers!
  </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);
Color Name Click Value
paris You clicked on Paris!
sydney You clicked on Sydney!
new york You clicked on New York!

Comments

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


  • Mike Biang

    This is a great example, though I want to point out that the tooltips are not working in this example. I tried both Chrome and Safari on Mac.

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.