1

OpenLayers上に構築されたマップアプリケーションがあり、サービス担当者が管理しているベースマップとさまざまな送信サイトを表示します。エラーが発生したときに最も近い技術者をサイトに送ることができるように、彼らを追跡し、地図上に彼らの最新の位置を表示したいと思います。

Google Latitudeの使用を開始したばかりで、Latitudeアプリケーションで期待どおりに機能しますが、このデータをOpenLayersの個別のレイヤーとして使用するための最良のアプローチは何ですか?同じマップに接続しているすべてのユーザーを表示するには?

Latitude APIをクエリするGeoJSONサービスを備えたVectorレイヤーを考えていますが、どんな考えやアイデアでも大歓迎です。

4

1 に答える 1

1

Well, it can be your own web service that quires Latitude API, or you can call Google's API directly from the client since it's REST based.

On the OpenLayers side I would also prefer Vector layer as it's very flexible and seems to fulfill your requirements.

You will probably also want to create a timer(setTimeout()) that calls Latitude API every minute or so and updates user's positions.

于 2011-03-28T14:40:14.710 に答える