Groups
Groups
Sign in
Groups
Groups
Google-Maps-API-Japan
Conversations
About
Send feedback
Help
[GMapsJ:2686] 多数のポリゴンをタイムラグ無く描画させる方法
193 views
Skip to first unread message
kamuro001
unread,
Apr 27, 2010, 12:06:38 AM
4/27/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google-Maps-API-Japan
初めまして
今
ASP.NET
+Google maps api (javascript)で開発をしており、その中で、
ポリゴンを動的に生成して、map上に張るということをしているのですが、
ポリゴンの数が2000個と多く、zoom時などにポリゴンが逐次表示されて
しまい、不恰好になってしまっています。多数のポリゴンをタイムラグ無く
一度に描画(表示)させる方法はありませんでしょうか?
なお、現在のコードは、
var polygon =new GPolygon([・・・])
map.addOverlay(polygon);
をポリゴンの個数分繰り返すコードとなっております。
#ちなみに画像を張る方法は、採らないことにしております。
--
このメールは Google グループのグループ「Google-Maps-API-Japan」の登録者に送られています。
このグループに投稿するには、
google-map...@googlegroups.com
にメールを送信してください。
このグループから退会するには、
google-maps-api-...@googlegroups.com
にメールを送信してください。
詳細については、
http://groups.google.com/group/google-maps-api-japan?hl=ja
からこのグループにアクセスしてください。
Masashi.K
unread,
Apr 28, 2010, 12:10:11 AM
4/28/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google-Maps-API-Japan
kamuro001さん
初めまして。
そのケースでしたらポリゴンの頂点となる経度緯度座標をエンコード化すると良いと思います。
●エンコード化ポリライン アルゴリズム方式
http://code.google.com/intl/ja/apis/maps/documentation/polylinealgorithm.html
エンコード化することで、圧縮レベルに応じて途中を端折ってくれるようになり、
また一度に表示されるようになるので、今回のケースには合っていると思います。
Reply all
Reply to author
Forward
0 new messages