Next step signup the google maps api key and give your website address to generate the unique key for that site.Then it will generate one key for the site. If you use this key to another site it won't work.
Example :
Key is
ABQIAAAAmnOQlz4O2XMui-auz2pa9BQCy-*
Integrate the following code in your webpages.
<!DOCTYPE html PUBLIC "-//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=ABQIAAAAmnOQlz4O2XMui-auz2pa9BQCy-*"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 500px; height: 300px"></div>
</body>
</html>
smanjula
Member
205 Points
349 Posts
Google Map in ASP.NET
Jan 05, 2012 03:40 AM|LINK
Hai,
I need to integerate Google Map in my web site.Can anyone pls tell me the cleatr steps to ingerate.Location for google map is India.
Thanks in Advance
rkchaudary
Contributor
2524 Points
545 Posts
Re: Google Map in ASP.NET
Jan 05, 2012 03:49 AM|LINK
you will get some insight from these
http://webcodeblog.com/2010/04/22/setting-up-google-maps-for-asp-net-and-sql-server/
http://code.google.com/apis/ajax/playground/#map_simple_v3
http://www.mikeborozdin.com/post/Working-with-Google-Maps-API-in-ASPNET.aspx
RkChaudary
blog
vijay_myl
Contributor
5070 Points
1068 Posts
Re: Google Map in ASP.NET
Jan 05, 2012 03:49 AM|LINK
hi..
Refer this below link.........
http://www.dotnetcode.in/2011/12/how-to-integrate-google-map-in-aspnet.html
My .NET blog
Submit Article
mayankpathak...
Contributor
3643 Points
844 Posts
Re: Google Map in ASP.NET
Jan 05, 2012 03:56 AM|LINK
Hi there
Check this resolved thread
http://forums.asp.net/t/1736259.aspx/1?Google+Map+artem+control
http://www.dotnetcode.in/2011/12/how-to-integrate-google-map-in-aspnet.html
salman beher...
All-Star
30579 Points
5852 Posts
Re: Google Map in ASP.NET
Jan 05, 2012 04:49 AM|LINK
Hi,
For integrating google maps into your code you need to access the google
apis.Click on the following lick.
http://code.google.com/apis/maps/index.html
Next step signup the google maps api key and give your website address to generate the unique key for that site.Then it will generate one key for the site. If you use this key to another site it won't work.
Example :
Key is
ABQIAAAAmnOQlz4O2XMui-auz2pa9BQCy-*
Integrate the following code in your webpages.
<!DOCTYPE html PUBLIC "-//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=ABQIAAAAmnOQlz4O2XMui-auz2pa9BQCy-*" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); } } //]]> </script> </head> <body onload="load()" onunload="GUnload()"> <div id="map" style="width: 500px; height: 300px"></div> </body> </html>Hope this very useful to you.
also....
http://weblogs.asp.net/scottgu/archive/2006/01/22/436166.aspx
Thanks..
Sincerely,
Salman
Hari.net
Member
4 Points
3 Posts
Re: Google Map in ASP.NET
Jan 05, 2012 05:11 AM|LINK
Hello !
1. Search for the location u need to display (as I'm Searching here 'Periya Kovil, Thanjavur,Tamil Nadu').
2. After Getting the result Click on the Link icon as shown in the picture.
3. Copy the Link and paste to your HTML page.
Your map is ready !!!
html asp.net
sandeep_tawa...
Member
168 Points
41 Posts
Re: Google Map in ASP.NET
Jan 05, 2012 05:26 AM|LINK
hi,
You can integrate google map API in simple way.
1. Open google map site in your browser.
2. On the Left panel of Site there is a Button of Link. Press this button.
3. Now you can find here embed code for HTML. Copy this code from here and Paste to your Website page.
4. You can do this for any searched locations from anywhere in the world :)
Cheers!!!
Sandeep Tawaniya
Remember to click “Mark as Answer” on the post, if it helps you.
StefanZv
Member
108 Points
14 Posts
Re: Google Map in ASP.NET
Jul 16, 2012 12:26 AM|LINK
If you are after V3 of Google Maps API, then this link may be of help:
http://stefanzvonar.com/2012/06/30/setting-up-google-maps-for-asp-net-and-sql-server-with-google-maps-api-v3/
Also, someone above mentioned the webcodeblog.com link which has now moved to (but uses V2 of Google Maps API):
http://stefanzvonar.com/2010/04/22/setting-up-google-maps-for-asp-net-and-sql-server/
Hope this helps,
Stefan
- stefanzvonar.com