Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Mar 2010
    Location
    India
    Posts
    4
    Member #
    21557
    My client has PHP-MYSQL based custom CMS Website. How to integrate Google map there. Client’s website contain some specific address which I want spot with the help of Google map. Any suggestion and comment in this regard will be appreciated. Thank You.

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Code:
    <div id="google_map" style="width: 600px; height: 400px;"> </div>
    
    <script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=YOUR_GOOGLE_MAPS_KEY"></script>
    <script type="text/javascript">
    //<![CDATA[
    var map = null;
    var geocoder = null;
    if (GBrowserIsCompatible()) {
    	map = new GMap2(document.getElementById("google_map"));
    	geocoder = new GClientGeocoder();
    	if (geocoder) {
    		var address = "123 My Way, Miami, FL 33131";
    		var point = geocoder.getLatLng(address, function(point) {
    			if (!point) {
    				alert(address + " not found");
    			} else {
    				map.setCenter(point, 13);
    				var marker = new GMarker(point);
    				map.addOverlay(marker);
    				marker.openInfoWindowHtml("<p>My info window popup</p>");
    			}
    		});
    	}
    }
    </script>


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:48 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com