Google Earth API获取位置或纬度,经度 [英] google earth api get location or latitude , longitude
本文介绍了Google Earth API获取位置或纬度,经度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想获取国家名称,该国家名称位于使用Google Earth API功能(在javascript中)编写的当前应用程序的中间位置,并获取经度和纬度,
I want to get the name of the country, which is located in the middle of the current application written using the functions of Google Earth API - in javascript - and get the longitude and latitude ,
推荐答案
一个简单的方法在浏览器中"是将地图居中放置在所需位置,然后将以下javascript粘贴到地址栏中:
a simple method ''in browser'' is just to center the map at the point you want then paste the following javascript into the address bar:
javascript:void(prompt('',gApplication.getMap().getCenter()));
有关Google Maps API(纬度/经度"部分)的所有信息,请参见以下网址:
https://developers.google.com/maps/documentation/javascript/tutorial#LatLng [ ^ ]
All information on Google Maps API (Latitude/Longitude section)can be found here:
https://developers.google.com/maps/documentation/javascript/tutorial#LatLng[^]
这篇关于Google Earth API获取位置或纬度,经度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文