简体   繁体   English

在Google地图上绘制多边形

[英]Drawing polygons on Google Maps

I was drawing polygons using Polygon Creator Class on Google Maps. 我在Google地图上使用Polygon Creator Class绘制多边形。 As you see this tool is not easy to use. 如您所见,此工具不容易使用。 For example, it's impossible to add new polygon or edit some of them after getting result code. 例如,在获取结果代码后,不可能添加新的多边形或对其进行编辑。

In following link when you zoom in between polygons you will see gaps that I want to remove. 在下面的链接中,当您在多边形之间进行放大时,将看到我要删除的间隙。 To recreate the issue please open following link and zoom in between polygons: 要重现问题,请打开以下链接并在多边形之间放大:

http://jsbin.com/bovogaqowu/1/edit?js,output http://jsbin.com/bovogaqowu/1/edit?js,output

Now question is, how to remove gap between these polygons ? 现在的问题是,如何消除这些多边形之间的间隙? In this case I can't use the tool that I used to create this map. 在这种情况下,我将无法使用用于创建此地图的工具。

And which tool is better to use in this situation ? 在这种情况下,哪种工具更好用?

Thank for your time 谢谢你的时间

I would suggest you using the Google's official tool for drawing, editing, locatiing and even finding driving directions for the markers you have placed on the maps. 我建议您使用Google的官方工具进行绘制,编辑,定位,甚至为您放置在地图上的标记查找行车路线。 You can always save these edited maps and retrieve them later when you need them. 您始终可以保存这些编辑过的地图,并在以后需要时检索它们。

Please click the following link and get started!! 请点击以下链接开始使用!

Even I tried drawing some polygons side by side and there were no gaps :) 即使我尝试并排绘制一些多边形,也没有间隙:)

Hope this would help!! 希望这会有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM