Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am using Google map in my application.
I am adding marker on Google map by using LAT/LONG of the point as shown below
var marker = new google.maps.Marker({ position: new google.maps.LatLng(LatValue,LongValue), map: map, title: MyTitle, icon:MyIcon });
But it is found that in my case instead of LAT/LONG values , XY co ordinates are available.
So can we plot marker using XY co ordinates something like this
var marker = new google.maps.Marker({ position: new google.maps.LatLng(X Co ordinate,Y Co ordinate), map: map, title: MyTitle, icon:MyIcon });
Is there any formula/method of converting XY co ordinate to LAT/LONG?
Thanks & Regards,
Anirudha Deshpande
Updated 19-Apr-11 19:12pm
walterhevedeich 20-Apr-11 1:13am    
added pre tags

1 solution

Have you looked at this very extensive article?:
Google Maps in HTML, ASP.NET, PHP, JSP etc. with ease[^]
Share this answer
walterhevedeich 20-Apr-11 1:14am    
Nice link. I haven't read the entire article but I assume its a good one since it has a quite high rating, considering that it has 82 votes. My 5. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900