Before knowing the technique of how to insert google map in your web site, Let us see how the business people are using this facility in their web sites. Here, I am taking an example of Real Estate web site >>> www.propertywala.com This site is helping the people to Buy or Sell their properties. Suppose, I want to purchase a Flat in North Bangalore. The steps involved are: Step 1: I type "www.propertywala.com" in the browser.
Step 2: Then I select the details like location of the flat (North Bagalore), Budget (40 to 60 Lakhs), No.of Bed Rooms (2 bedrooms) and click the Search Button.
Step 3: It shows the map of North Bangalore which shows the available Flats.
Now you saw one example of how google map can be used in a web site. Another example :You want to show the exact location of your office so that customers can easily reach your office. ************************** What ever be your intention for display of google map, let us see How to insert Google Map in your web site? Step 1: Ofcourse, you should have your own web site. If you dont have any , dont worry. Simple type Blogger.com and follow few simple steps given there and you will get a blogspot URL of your own. I got this url for me: http://google-map-in-real-estate.blogspot.com/
Step 2 : Then, Go to URL " http://maps.google.com ". Step 2: You will see the goole map. You can search for the place you want to diplay as map : I have searched ALTTC Ghaziabad India in this example Step 3: Then, Click on the "Link" link, you will get embed code for that location. Step 4. Simply paste the code anywhere in your html page.
Click here to view MY Location created using the above method
============================= There is one more method. This method is slightly complicated. Step 1: Go to URL:http://www.google.com/apis/maps/signup.html You get the page like this. and enter YOUR WEBSITE URL there as shown here:
You will get the Key for Google MAP API. The Key, I got for my URL is shown here : ABQIAAAA1pt0TaK64oKh0CimOzBPDBScQX63PEe_wOyG8Ph0n1aNbjwUrxTR_aICK3or2L8uwT0MxxWLGZEnAw Step 3: Once the API key is ready, you can put that key, in the following Sample HTML file and save this page and run it. Sample HTML file: This code displays a 500x300 map centered on Palo Alto, California : <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google Maps JavaScript API Example</title> <script src="http://maps.google.com/maps?file=api&v=2&key=WRITE YOUR API CODE&sensor=false" type="text/javascript"> </script> <script type="text/javascript"> function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); map.setUIToDefault(); } } </script> </head> <body onload="initialize()" onunload="GUnload()"> <div id="map_canvas" style="width: 500px; height: 300px"></div> </body> </html>
|
This explains how to insert google map in your web site
Sunday, June 14, 2009
How to insert Google Map in a Web Site
Monday, June 1, 2009
Page 2 : How to insert google map in a web page
Steps followed to insert this map here. 1. Type "maps.google.com" 2. You will be viewing the goolge map. Locate the place which you want to display 3. Then, click on the "LINK" link. You will see a small code. 4. Copy and paste this code in your web page. That is all <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=alttc+ghaziabad&sll=37.0625,-95.677068&sspn=32.80241,50.712891&ie=UTF8&t=h&ll=28.683305,77.45312&spn=0.010657,0.020972&output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=alttc+ghaziabad&sll=37.0625,-95.677068&sspn=32.80241,50.712891&ie=UTF8&t=h&ll=28.683305,77.45312&spn=0.010657,0.020972" style="color:#0000FF;text-align:left">View Larger Map</a></small> |
View Larger Map |