Contents
Description
This plugin is a friendly integration of Google Map into your blogs.
The plugin is based on WordPress shortcodes, so it can be used like a tag into your content and allows multiples parameters to customize the map and markers behavior. The editor button allows to add the shortcode attributes easily.
On the Google Map editor panel you can add points to the maps, change the map configuration and look how the map will looks like with a “Preview Map” button.
Once you add new point it is attached to the post and you can deploy it on any map in your blog using the “id” or “cat” attributes in the .
The plugin also allows to customize the “Info Window” editing the html and using some parameters like: Title, Description, Thumbnail, Link, etc.
If you want to focus a specific point in your maps the “focus” attribute should be used. You can use the point number or focus = “all” to rotate all the points. The focus feature can be based on “center the marker” or “open the marker” . For more details visit the Shortcode reference section.
Usage
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"]') ?>
To see the list of the shortcode options visite the Google Map Shortcode Reference page.
For more details you can visite the how to use section.
Modules
The plugin allows to add points and maps easily including titles, images, descriptions and animations; but if you want to extend the functionality and interaction of your maps, some modules are available. They can include slideshows, custom scrolls and more. Visit the modules page for more details.
Examples
- Simple example using width, height, align, margin, zoom and type.
- Advance example using focus, focus_type, interval and zoom.
- Advance example using focus, focus_type and animation.
- Using Addresses in different languages and animation.
Screenshots
Changelog
2.2
- Map types added.
- Marker animation option added.
- Focus option added.
- Maps marging and aligment added.
- More Map languages included.
- Performance improved.
2.1.2
- Preview map added on the map editor panel.
2.1.1
- Google Map Shortcode tab added to the media editor window.
- Upload Image button added.
- Cleaning string before saving points fixed.
- Other bugs fixed.
2.1
- Allows selecting single point icon, title and description.
- Html filters added.
- Just one custom field by post to include all the points.
- Icon selection improved.
2.0.1
- Geocoding API request changed.
- Html width parameter included.
2.0
- Custom marker added.
- Google Map Javascript v3 integrated.
- Editor button added.
- Ready for translation.
- Maps in different languages allowed.
1.1
- Loops related bugs fixed.
- More than 10 points allows per page fixed.
- New custom field included in order to cache the Latitude and Longitude and avoid extra Google Geocoder requests.
- More than one point per post fixed.
1.0.0
- Initial release.
Download
http://wordpress.org/extend/plugins/google-map-shortcode/


January 23, 2012 at 7:57 am
Hi there
Fab plugin. I’m just having a small problem – when I include the shortcode in my custom posts, the map displays with a horrible background behind the map controls, and if you click on any of the markers. This happens regardless of whether I am including it directly, or whether I include it via do_shortcode. This doesn’t happen in normal posts (looks beautiful in normal posts) – any ideas?
January 23, 2012 at 8:29 am
NVM – it was a style applied to the parent div
Fab plugin, thanks
January 21, 2012 at 9:33 am
Thanks for the wonderful plugins its working fine.
January 13, 2012 at 3:20 pm
Hi Alain !
I just love your plugin, just so easy to work with and to manage.
But since I’ve uprgaded to wordpress 3.3.1 and your last plugin release, I can’t delete the markers I created before.
The delete button just doesn’t work on them and even when I delete the points in my database, they keep coming back…
Could you please help me on this ?
I don’t want to go for a nother plugin, they just lack the simplicity of yours…
Thanks for your great work !
January 13, 2012 at 4:36 pm
This is weird… Are you using custom fields?
January 17, 2012 at 1:00 am
Hello !
Sorry to comme back this late and thanks for your reply.
No, I don’t.
Seems my installation suffers from little bugs… I’m going to track them, fin out whether or not a plug-in might be the problem.
I’ll comme back if I work it out. Still, don’t hesitate if you have a solution for me !
Thanks again !!
January 9, 2012 at 2:53 am
I have been using this plug-in for two years now. Today I noticed that I am getting a code listing of my map co-ordinates at the top of the page in which I am displaying the map see(http://www.terralingua.org/bcdconservation/?page_id=2). It is very strange. Today I updated to WordPress 3.3.1 and updated my theme (atahualpa). I disabled all my plug-ins there was no difference. Would you have any idea what would be going on, or how I could fix it? also, when I try to get on the ReadMe Page for Google map shortcode, it consistantly logs me out of my site(?).
January 9, 2012 at 5:31 am
sorry, i forgot to mention- when I try to alter the settings page, it logs me off my site as well. (I actually have to log-in TWICE to get on my site??).
January 9, 2012 at 2:50 pm
Go to the google-map-shortcode/include/functions.php search for this line of code “print_r($post_data_ltlg);” and delete it.
January 9, 2012 at 9:32 pm
Thank you so much for replying so quickly! It worked! However, still if i try to modify the Google Map short code, it still kicks me off my site and I have to log in twice to get back on. At this point, I don’t care, because the map is up and functioning and the ‘code display’ is gone, and that is all that matters.
December 20, 2011 at 4:56 am
OK, maps are working, just some minor cosmetic issues. Here’s the home page aggregate map: http://www.wherewevacation.com/
1. If you click on any point, the info window comes up, but so do all these distracting lines on the map, and there is no x to close the window. Sometimes there’s a pointer from the info window to the point, but othertimes there are stray lines there. Zooming down will also bring up distracting lines.
2. Is there any way to move the view of the map down, so that I could increase the zoom? Currently, increasing the zoom from 4 to 5 will cut off the northern points.
Thanks.
December 20, 2011 at 3:47 pm
1- Read this comment:http://web-argument.com/2011/07/18/google-map-shortcode-plugin-version-2-1/comment-page-1/#comment-12384
2- Use the “focus” option.
December 20, 2011 at 9:53 pm
Thanks Alain, it’s working!
I have a suggestion for a future update. I didn’t like the map bouncing around so turned that off. But it would be nice if when you hover your mouse over the point, that the info window came up then.
December 16, 2011 at 5:26 am
My blog reviews ski resorts, so I place one map on each post. How do I make one aggregate map that shows all the individual points on one big map? I’d like it to be like a Table of Contents page, where clicking on the point should take you to the correct post.
Is there a limit to the number of points on this aggregate map, if it is a feature?
Thanks
December 16, 2011 at 2:43 pm
Just need to create a shortcode using the category attribute, for example:
[google-map-sc cat="4"]
December 18, 2011 at 2:26 am
Thank you so much Alain, it works! I’m slowly picking up the syntax of your code, but what’s even more confusing is finding the ID #s required. All you need is a post ID or category ID, but where do you find these? I found it by hovering my mouse over the category name, under Posts -> Categories. I’m sure there are plug-ins to make the IDs show, but I only have a few posts and one category right now. The map is working, so thank you, very useful plug-in!
December 11, 2011 at 5:29 am
Has anyone had any luck popping up a map inside the Worpress native Thickbox from a “Map” link on a page? I don’t want to use the hidden DIV method because I don’t want the initial overhead on the page load ( I don’t want to load the map unless it’s requested.)
Thanks in advance.
November 25, 2011 at 1:47 am
Hi Alain,
I reposted the 10th point on the map. Just as last time, the map went away.
The direct link to the page with the map is:
http://www.campepic.com/contact-us
Appreciate the support.
Cheers,
Ron
November 27, 2011 at 2:55 am
Yes, there is a problem with this addres “420 Florida Street
Vallejo, CA 94590-5416″ and the line break. Try to put everything in a single line.
December 5, 2011 at 3:25 am
Awesome! That fixed it! Cheers and Happy Holidays!
November 22, 2011 at 7:10 pm
Your plugin is great! I have been using it with 9 points on the map just fine. But today I added a 10th point and the map disappears! When I delete that 10th point the map reappears on my website. Am I limited to only 9 points for this map to be displayed?
November 22, 2011 at 7:28 pm
There is no limit. Can you add the 10th point and include a link?
November 22, 2011 at 5:41 am
Hi Alain
I have upgraded the theme on my website (from Weaver 2.2.6 to Weaver II Pro) and now all my maps have regularly-spaced vertical gaps in them, the zoom ladder on the left is hidden (although you can still zoom if you put your mouse in the right place!), and the info boxes have lots of problems (no X to close, no arrow pointing to the flag, no shadow, a blurry graphic has appeared at the bottom of the box).
This is an example page (all map pages have the same issues)
http://www.polioaustralia.org.au/?page_id=4733
The issues are evident whether viewing the site in IE8, IE9, Firefox 8 and Opera.
Do you have any ideas on what the cause and solution might be?
Thanks in advance
Gillian
December 11, 2011 at 5:23 am
Hi Gillian,
A lot of newer themes are using responsive layouts in an effort to accommodate mobile devices. A common CSS rule used for this is to set image sizes to 100% which effects this plug in adversely. Look in your CSS file for that and remove it.
January 23, 2012 at 12:50 pm
A better solution would be to add the following to your themes css file:
.gmsc img {
width:auto;
max-width:none;
}
This will not effect the rest of your theme but fixes the issues with images inside the map.