Contains a simple way to add an embedded Google Map to any page or post.
Adding an embedded Google Map is a must for most websites. I have created a simple way to add your map with just a simple shortcode. Despite the name there are some nice features that makes this plugin simple but powerful.
The basic shortcode to use is [vsgmap address="street address to display"]
See the FAQ for full usage options.
To get fastest response use the support page in the plugin area on WordPress.org
I would love some feedback. I will try and respond to any issues you might have.
To send any suggestions, comments, or feedback about this plugin send a message to us.
/wp-content/plugins/
directoryThe shortcode you need to use is this:
[vsgmap address="street address to display"]
The following options are available:
address=”street address to display” (Enter the street address for the location to be shown. NOT a Google Map URL)
align=”left” (default is left. Valid are left, right, center)
width=”400″ (default is 400. Any pixel dimension is valid)
height=”380″ (default is 380. Any pixel dimension is valid)
info_window=”A” (default is A which displays marker popup. Other option is near and the marker popup will not appear until marker is clicked on)
zoom=”14″ (set the default map zoom level. Valid options are 1 through 16)
companycode=”” (Enter Google string cid from company maps listing URL)
maptype=”” (default is m, m = normal map, k = satellite, h = hybrid, p = terrain)
Find your company listing on a Google Maps result page and click the link to email the link. It will open an email and the full link will be visible. The cid # is usually easy to see. you only need the part after cid= you do not need the whole thing. You can also try this web page CID Finder: http://ryanbradley.com/tools/google-cid-finder
The plugin wraps the embed within a div so this can be achieved with with css.
Simply add the following to your themes style.css
.vsg-map iframe { border: 1px solid; }
Of course you can change the css any way you like.
First public and stable version.
Add the word “street” to the description so usage is more clear.
Update for WP 3.8.1
Update for WP 3.9
Added fix to center location point in the map as suggested by user SiNNeD.
Update for WP 4.2
Update for WP 4.3
Added maptype
Update for WP 4.8
Typos fixed as suggested by user G. Hyder and a few others I found myself.
Tested with WP 5.3
This plugin is still shortcode based. I will add a block for the new Block Editor at some point but it is not ready yet. You can still use the shortcode in a classic block until then.
Tested with WP 6
Tested with WP 6.1
Update to address security issue
Update to address XSS security issue as reported by István Márton, Wordfence Vulnerability Researcher. Thanks for the responsible disclosure.