With Pro Maps for Google, when you first load your map, it will center the map on the default location that you specified in the Pro Maps for Google wizard. However, you may want to add links to your page that will change which location your map centers on. The following How-To shows you what you need to do to set this up.
First, you need to locate the name of your map object. This is included in the URL you are going to create.
<script type="text/javascript" src="plugins/plugins/google_javascript/wagmp_map_1.js">/*wagmp*/</script>
The next step is to create the link that will change the focus of the map to a different address.
<a href="#" onclick="wagmp_map_1_obj.openWindowByAddress('Address');">Link to map</a>
<a href="#" onclick="wagmp_map_1_obj.getPointByAddress('Address').marker.openInfoWindowHtml(wagmp_map_1_obj.getPointByAddress('Address').address.infowindowtext);">Link to map</a>
You will now need to modify some elements in the link you just pasted to work with your map.
<a href="#" onclick="wagmp_map_1_obj.openWindowByAddress('8899 University Center Ln');">8899 University Center Ln </a>
<a href="#" onclick="wagmp_map_1_obj.getPointByAddress ('8899 University Center Ln').marker.openInfoWindowHtml (wagmp_map_1_obj.getPointByAddress('8899 University Center Ln').address.infowindowtext);">8899 University Center Ln </a>
return WAMapPoint(this.markers[x],this.addresses[x],this.icons[x], this.points[x], this.obj);
function WAMapPoint(theMarker, theAddress, theIcon, point, map) {
map.setCenter(point, 13);
Comments will be sent to the author of this tutorial and may not be answered immediately. For general help from WebAssist, please visit technical support.
Sign in to add commentsYour friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.