-
google map clicked coordinates
hi friends
how can i find the coordinate if a site visitor clicked my google map?
below is my code for the gmap
thanks
<script src="http://maps.google.com/maps?file=api&key=ABQIAAAA0BO2Ps4DbLymjxuBgZcbgkPNhnwAuBgZcbgkPNhnwAa0Zz7fHWiJUQ" type="text/javascript"></script>
<div id="map" style="width: 300px; height: 300px;"></div>
<script type="text/javascript">
function loadGMap()
{
var map = new GMap(document.getElementById("map"));
var point = new GPoint(55.176429748535156, 25.104875594635896);
var marker = new GMarker(point);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.centerAndZoom(point, 8);
GEvent.addListener(marker, "click", function()
{
marker.openInfoWindowHtml("hello world");
//alert("You clicked on" + GEvent. )
});
map.addOverlay(marker);
}
window.onload=loadGMap;
</script>
Similar Threads
-
By alsoares in forum AJAX
Replies: 2
Last Post: 12-20-2007, 07:03 PM
-
Replies: 3
Last Post: 05-16-2007, 03:06 PM
-
Replies: 2
Last Post: 01-28-2006, 11:10 PM
-
By T. Hoskins in forum .NET
Replies: 74
Last Post: 02-07-2003, 01:45 PM
-
By mark hembree in forum ASP.NET
Replies: 1
Last Post: 01-11-2001, 10:21 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks