当变焦变焦时,多边形会变成he线

时间:2013-03-06 20:51:09

标签: zoom polygon google-fusion-tables

以下是仅显示一个多边形的链接。

https://www.google.com/fusiontables/embedviz?viz=MAP&q=select+col1+from+1PdVL8ltzXzHWbZI6MVWNghTz7sh9FKH9hw_YYYM+where+col0+%3D+412&h=false&lat=44.07068786477725&lng=-91.70146331134345&z=13&t=1&l=col1&y=2&tmplt=2

增加缩放将使形状首先消失,然后显示为不同的多边形。

这是几何coloumn的值:

<Polygon><outerBoundaryIs><LinearRing><coordinates>-91.7038631654,44.0694374856,0 -91.7055532814,44.0738871339,0 -91.7054979683,44.0739665384,0 -91.7055402916,44.0741115336,0 -91.7056036015,44.0741019279,0 -91.7056387888,44.074121276,0 -91.7057645696,44.0744656962,0 -91.7056251503,44.0745755934,0 -91.7054229212,44.0739915748,0 -91.7037600839,44.0695990536,0 -91.7036568735,44.0695519885,0 -91.7031499848,44.0695794019,0 -91.7031311599,44.0695869489,0 -91.7031138294,44.0695961708,0 -91.7030982784,44.069606916,0 -91.7030847624,44.0696190077,0 -91.7030735039,44.0696322471,0 -91.7030646879,44.0696464165,0 -91.7030584595,44.0696612828,0 -91.7030549211,44.0696766016,0 -91.7030541309,44.0696921209,0 -91.7030561019,44.0697075855,0 -91.7030410581,44.0694768048,0 -91.7038631654,44.0694374856,0</coordinates></LinearRing></outerBoundaryIs></Polygon>

有没有办法纠正这种行为?

的Bogdan

1 个答案:

答案 0 :(得分:0)

看起来像FusionTablesLayer磁贴生成器的问题。如果我export it using the FusionTables API v1.0 and render it as a native Google Maps API v3 polygon,它似乎适用于所有缩放级别。

有两种选择:

  1. 你可以尝试扭转缠绕方向,这有助于一些像这样的奇怪案例
  2. 你可以尝试简化多边形(虽然对我来说似乎很简单),但这又有一些像这样的奇怪案例有帮助。
  3. 我在Fusion Tables User Group中讨论过我之前提及的实例,但是通过快速搜索无法找到它们。

    这是one of the threads I was remembering