Thanks CidTek. I did exactly the same. I got the source worked out (Javascript plus HTML) for it work on my browser. I have still not been able to figure out how to send the two parameters of the latitude and longitude to the HTML file. I am pretty good at ASP and HTML but the correct syntax for javascript is still a tough battle for me. Are you by any chance conversant with this. The piece of code is as follows
<!DOCTYPE html>
<html>
<head>
<title>Simple Map</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
</style>
<script src="
https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
<script>
var map;
function initialize() {
var mapOptions = {
zoom: 8,
center: new google.maps.LatLng(-34.397, 150.644)
};
map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
}
google.maps.event.addDomListener(window, 'load', initialize(19,72));
</script>
</head>
<body>
<div id="map-canvas"></div>
</body>
I need to pass two parameters to this HTML file. The latitude and the longitude which will replace the two constants in the following code
center: new.google.mpas.latlng(-34.397, 150.664)
Just wondering if you would know the right syntax of getting the two variables with a request.querystring() call.
Ajay