1

我正在开发一个 api,它使用带有 openlayers 的 timemap 库。我将数据发送到数组中,一切都很好,但是当我放大或缩小时,所有点的坐标都在变化。我使用的 api 的地址是 OpenLayers -TimeMap

http://timemap.googlecode.com/svn/tags/2.0/examples/basic_openlayers.html

您可以看到缩放更改时标记正在更改。我该如何解决这个问题谢谢你的帮助...

4

2 回答 2

2

我知道这是一个老问题,但我想让你知道这是由于 Mapstraction 库中的一个错误,它已在 Timemap.js v.2.0.1 中修复 - 请参阅:http://timemap。 googlecode.com/svn/tags/2.0.1/examples/basic_openlayers.html

于 2011-10-04T18:31:06.140 回答
1

我开发了这个,类似但支持集群策略,即使处理大量数据(如 5000 点)也能正常工作。 https://github.com/volpino/openlayers-timeline

演示:http: //volpino.github.com/openlayers-timeline/

于 2011-08-08T17:57:35.610 回答