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.

World Map with Text Markers

This example highlights the corresponding row when a text marker is clicked. For example, if you click on Melbourne, you will see that the first row is highlighted.

# Date Location
1 March 16th Melbourne
2 April 20th Shanghai
3 May 11th Barcelona
4 June 8th Montréal
5 July 6th Silverstone
6 July 27th Mogyoród
7 September 21st Singapur
8 October 12th Austin
9 November 9th Interlagos
10 November 23rd Abu Dhabi

We added a table to this map which can be useful to display additional information. We extend the default HTML of this map to the following. A complete version can be found at the end in the map configuration.

<div id="{cssid}">
  %%map%%
  <div class="click-content">
    <table class="table">
      <tr>
        <th>#</th>
        <th>Date</th>
        <th>Location</th>
      </tr>
      <tr class="melbourne">
      	<td>1</td>
        <td>March 16th</td>
        <td>Melbourne</td>
      </tr>
      <!-- ... -->
    </table>
  </div>
</div>

If you click on one of the text markers, you will notice that the corresponding table row is selected. This was achieved by adding the following JavaScript code to the map:

jQuery("#" + cssid + " table tr").removeClass("selected");
jQuery("#" + cssid + " ." + click_value).addClass("selected");

This code is executed everytime one of the markers is clicked. The first line removes the selection and the second sets the selection. Each text marker has its own click value. In this example it contains the CSS class for the table row that we want to highlight. For example, for Melbournce we will set the click value to melbourne.

The color is set by the following CSS rule:

#{cssid} .selected td {
	background-color: #e2d8d3;
}

This CSS rule will set the background color to #e2d8d3, whenever its row has the class .selected.

The map configuration can be found 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 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 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} .selected td {
	background-color: #e2d8d3;
}
HTML
<div id="{cssid}">
  %%map%%
  <div class="click-content">
    <table class="table">
      <tr>
        <th>#</th>
        <th>Date</th>
        <th>Location</th>
      </tr>
      <tr class="melbourne">
      	<td>1</td>
        <td>March 16th</td>
        <td>Melbourne</td>
      </tr>
      <tr class="shanghai">
      	<td>2</td>
        <td>April 20th</td>
        <td>Shanghai</td>
      </tr>
      <tr class="barcelona">
      	<td>3</td>
        <td>May 11th</td>
        <td>Barcelona</td>
      </tr>
      <tr class="montreal">
      	<td>4</td>
        <td>June 8th</td>
        <td>Montréal</td>
      </tr>
      <tr class="silverstone">
      	<td>5</td>
        <td>July 6th</td>
        <td>Silverstone</td>
      </tr>
      <tr class="mogyorod">
      	<td>6</td>
        <td>July 27th</td>
        <td>Mogyoród</td>
      </tr>
      <tr class="singapur">
      	<td>7</td>
        <td>September 21st</td>
        <td>Singapur</td>
      </tr>
      <tr class="austin">
      	<td>8</td>
        <td>October 12th</td>
        <td>Austin</td>
      </tr>
      <tr class="interlagos">
      	<td>9</td>
        <td>November 9th</td>
        <td>Interlagos</td>
      </tr>
      <tr class="abudhabi">
      	<td>10</td>
        <td>November 23rd</td>
        <td>Abu Dhabi</td>
      </tr>
    </table>
  </div>
</div>

JavaScript

Executed when a marker/region is clicked.

Click value can be defined for each map element.

jQuery("#" + cssid + " table tr").removeClass("selected");
jQuery("#" + cssid + " ." + click_value).addClass("selected");
Color Name Click Value
Melbourne, Australia melbourne
Shanghai shanghai
Barcelona barcelona
Montréal montreal
Silverstone, England silverstone
Mogyoród mogyorod
Singapur singapur
Austin austin
Interlagos interlagos
Yas-Insel abudhabi

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.