我们可以使用XY坐标在Google Map中添加标记吗 [英] Can we add marker in google Map using XY co ordinates
本文介绍了我们可以使用XY坐标在Google Map中添加标记吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我正在应用程序中使用Google地图.
我通过使用该点的LAT/LONG在Google地图上添加标记,如下所示
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 });
但是发现在我的情况下,可以使用XY坐标代替LAT/LONG值.
因此,我们可以使用XY坐标来绘制标记吗?
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 });
是否有将XY坐标转换为LAT/LONG的公式/方法?
谢谢&问候,
Anirudha Deshpande
Is there any formula/method of converting XY co ordinate to LAT/LONG?
Thanks & Regards,
Anirudha Deshpande
推荐答案
您是否看过这篇内容广泛的文章?:
轻松使用HTML,ASP.NET,PHP,JSP等格式的Google Maps [
Have you looked at this very extensive article?:
Google Maps in HTML, ASP.NET, PHP, JSP etc. with ease[^]
这篇关于我们可以使用XY坐标在Google Map中添加标记吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文