code to add google map in the application

Nithadeepak
Posted by Nithadeepak under ASP.NET category on | Points: 40 | Views : 3742
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="http://maps.google.co.in/maps?file=api&v=1&key=ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA" type="text/javascript">
//To generate a API key refer:http://assets.webassist.com/how-tos/google_map_api.pdf
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="map" style="width: 400px; height: 300px"></div>
<script type="text/javascript">
var map = new GMap(document.getElementById("map"));
map.centerAndZoom(new GLatLng(19.017656, 72.856178), 3); </script>
</div>
</form>
</body>
</html>

Comments or Responses

Posted by: Jayeshl on: 7/6/2011 Level:Starter | Status: [Member] | Points: 10
hi friend ,
thanks to post this code for google map...

we can also use jQuery gmap for Google map utility

from
Jayesh L
http://www.sqlassistant.blogspot.com

Login to post response