17
4K
41K
0
07 October 2024
23 June 2013
Based on 17 on WordPress.org
The 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.
/wp-content/plugins/
directory