使用Google Maps API从KMZ文件创建多边形 [英] Create a Polygon with Google Maps API from KMZ file

查看:100
本文介绍了使用Google Maps API从KMZ文件创建多边形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些KMZ和KML文件在Google地球中定义了一些多边形。有没有办法使用Google Maps API读取这些文件并创建多边形?

谢谢!

解决方案


  1. 只要符合 limits

  2. 第三方解析器的kmz分支 geoxml3 可以将KMZ文件呈现为本地Google Maps JavaScript API v3对象示例



I've some KMZ and KML files that define some polygons in Google Earth. Is there a way to read those files with Google Maps API and create the polygons?

Thanks!

解决方案

  1. KmlLayer will load KMZ files from a valid publicly accessible URL, as long as it meets the limits.

  2. The kmz branch of the third party parser geoxml3 can render KMZ files as native Google Maps Javascript API v3 objects example

这篇关于使用Google Maps API从KMZ文件创建多边形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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