code to add google map in the application

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
<script src="" type="text/javascript">
//To generate a API key refer:
<form id="form1" runat="server">
<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>

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

Jayesh L

Login to post response