0

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

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.70146332&tmpl=1&43l41&t=z1&=z =2

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

这是几何列的值:

<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>

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

波格丹

4

1 回答 1

0

看起来像 FusionTablesLayer 瓦片生成器的问题。如果我使用 FusionTables API v1.0 将其导出并将其呈现为原生 Google Maps API v3 多边形,它似乎适用于所有缩放级别。

几个选项:

  1. 您可以尝试反转缠绕方向,这在一些奇怪的情况下有所帮助
  2. 您可以尝试简化多边形(尽管对我来说似乎很简单),但这在一些奇怪的情况下也有所帮助。

我所指的先前实例在Fusion Tables User Group中进行了讨论,无法通过快速搜索找到它们。

这是我记得的线程之一

于 2013-03-06T21:17:15.217 回答