如何在经纬度获取Google我的地图位置引脚 [英] How to Get Google My Maps Location Pins in Latitude and Longitude

查看:109
本文介绍了如何在经纬度获取Google我的地图位置引脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过 http://www.google.com/mymaps/ 创建了自定义地图并添加了几个位置。



有没有办法让我通过Google Map Javascript API检索这些位置(以lat和lng格式)?

解决方案

首先,您需要将地图导出为KML图层。要了解如何做到这一点,您可以阅读此处



之后,您需要将KML图层导入Google地图。以下是示例



然后,您可以使用 KML功能详情和使用位置来获得经/多

I have created a custom map via http://www.google.com/mymaps/ and have added a few locations.

Is there a way for me to retrieve these locations (in lat and lng format) via Google Map Javascript API?

解决方案

First you will need to export your map as a KML layer. To see how to do that, you can read about it here.

After that, you will need to import your KML layer to Google Maps. Here is an example.

Then you can use KML Feature Details and use position to get lat/long

这篇关于如何在经纬度获取Google我的地图位置引脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆