Google Map Shortcode Reference

The Google Map Shortcode editor panel allows to set and insert the shortcode into your code, but it can be added manually using:

Shortcode for the content of posts and pages

[google-map-sc option = "option value"]

PHP code for theme files

<?php echo do_shortcode ('[google-map-sc option = "option value"]') ?>

Below you can find the Google Map Shortcode parameters and posible values, if any options are included the shortcode will use the configuration defined on the plugin options page:

Option Value Description
width number Width of the map
height number Height of the map
zoom (0-20) Initial zoom of the map
margin number Margin of the map
align left,center,right Alignment of the map
language visite google map api for details Map language
focus 1,2,3…all Point where the map will be focused
focus_type open,center How the point is focused
interval milliseconds Time interval of the points focus rotation
animate true,false Animate the markers
canvas string (Optional) Canvas id where the map will be deployed
id number Display the points attached to the post with this id
cat number. Separated by comma. Display the points attached to the post under this category
address string Display specific address
title string Custom title for the point related to the address option
description string Custom description for the point related to the address option
icon URL Custom icon for the point related to the address option
thumbnail URL Custom thumbnail for the point related to the address option
module string scroller, slideshow

48 thoughts on “Google Map Shortcode Reference”

  1. hi, is it possible to put destination or route in map ?

    for x when user visit website he could put his postcode and get the route to the location but only in single post page

  2. Same problem as Manny.
    Great product but just simply want to put £ sign into info box and it keeps causing a line break after the £ sign.
    Is this because it converts it to HTML Ampersand Character Codes? i.e. £ sign is £
    And it’s the ; character which causes the line break?



  3. Tried using your plugin but had problems with entering HTML in the info bubble. It only displays the html code as text. The other issue was I cannot change the Title or images in the bubble to link to specific post. If you add multiple points on the map they all point to the same post (current one).
    It’s a shame because I like the plugin but it won’t work for me.

    WP v3.3.1
    Plugin V3.1


  4. Hi guys,

    i was implemented this plugin in few web sites which i created, and working great. But, in my latest project i get some problem. Everything is fine under installation and setup shortcode on page, but when i open page it display only gray background on place where should be map. Page u can see here:
    Can someone help me to resolve this problem?

    King regards!

  5. Can you give an example for displaying the points attached to the post under a specific category? I suppose the map creates a thumbnail from the featured image of the single category posts? And the post content contains the address only? Which icon does the map created by cat use?

  6. I have uploaded some more images later to that certain post where the map is included. Is it possible to change thumbnails of the single points if a map is already published? Or must I create a new map?

  7. Howdy, I’m using the following PHP code unsuccessfully :

    echo “\nCreating Map for $row->name using this Address –> $address <– \n”;
    echo do_shortcode (‘[google-map-sc address="'.$address.'"]‘);

    You can see a typical page here :

    But I get “There is not points to locate on the map” on almost all of my maps.

    Just going to Google – it renders very well.

    Any clues?


Leave a Reply

Your email address will not be published. Required fields are marked *