Shortcode: [cspm_contact_map]

This shortcode will display a map of a given location by providing Latitude & Longitude coordinates. This was introduced in version 3 as a replacement of the v2 shortcode [cs_static_marker_map].

The shortcode [cspm_contact_map] supports the following parameters:


The coordinates (Latitude, Longitude) of the location to display on the map.

Example: [cspm_contact_map latlng="51.53096,-0.121064"]


A string name that represent the unique ID of the map. This attribute is only required if you want to display multiple maps on the same page.

* This attribute is required only if you want to use multiple maps on the same page.

Example 1: [cspm_contact_map]

Example 2: [cspm_contact_map map_id="map_1"]

width (optional)

The width of the map in pixels or in %.

Example 1: [cspm_contact_map width="100%"]

Example 2: [cspm_contact_map width="500px"]

height (optional)

The height of the map in pixels or in %

Example 1: [cspm_contact_map height="100%"]

Example 2: [cspm_contact_map height="500px"]


The URL of the custom marker icon/image. If not used, the plugin will use the default marker icon!

Example: [cspm_contact_map marker_img=""]

zoom (optional)

Define the zoom of the map (from 0 to 19).

Example: [cspm_contact_map zoom="13"]

map_style (optional)

The skin of the map. To get the style name, follow these steps:

  1. Click on the menu “Progress Map”. Wait for the page to load!
  2. Click on the menu “Default Map style settings”
  3. Click the link “Demo” next to the style you like. A new page/window will open, the URL of that page/window holds the style name as the last attribute. So if the URL looks like, the style name will be apple-maps-esque.

Example: [cspm_contact_map map_style="apple-maps-esque"]

initial_map_style (optional)

The initial style of the map. Possible values are ROADMAP, SATELLITETERRAINHYBRIDcustom_style.

Example: [cspm_contact_map initial_map_style="TERRAIN"]

window_resize (optional)

Detect browser window resize and recenter the map. Possible values are yes and no.

Example: [cspm_contact_map window_resize="no"]

In the same context