Groups
Groups
Sign in
Groups
Groups
Google-Maps-API-Japan
Conversations
About
Send feedback
Help
ポリラインから情報ウインドウ(吹き出し)を出したい。
169 views
Skip to first unread message
nabe
unread,
Oct 17, 2009, 10:42:14 PM
10/17/09
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
初めまして
知識も無いまま、Google maps APIで、いろんなことに挑戦しています。
Google マップのマイマップで地図上に線を引き、その線上(線の上なら何処でも)をクリックすると情報ウインド(吹き出し)が表示できるのです
が、Google maps APIでも、同様のことが出来るのでしょうか?
マーカーからの情報ウインドの表示は出来るのですが・・・・・・・
方法をご存知の方が居られましたら、是非ご教授ください。
Masashi.K
unread,
Oct 17, 2009, 10:53:56 PM
10/17/09
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
GPolyline や GPolygonクラスそのものには、情報ウィンドウを開くための
メソッドは用意されていないので、
たぶんGMap2 の openInfoWindow で行っているのではないでしょうか。
nabe
unread,
Oct 18, 2009, 4:22:34 AM
10/18/09
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
Masashi.kさん
早速の書き込み有難うございます。
私も、GMap2 の openInfoWindowHtml(point, html, opts?)だと思い、色々と挑戦したのですが、
GPolyline をどのようにしてpointにすれば良いのか分かりません。
とりあえずもう少し考えて見ます。
また何か良い方法がありましたらご教授ください。
hiroaki
unread,
Oct 18, 2009, 10:47:22 AM
10/18/09
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
nabe さん
GMap2 の click イベントを用います。
ポリラインをクリックしたときは、コールバック関数の第一引数に、ポリラインのオブジェクトが入ってきます。第二引数がクリックした地点の
GLatLng です。
GEvent.addListener(gmap2,'click',function
(overlay,latlng,overlaylatlng){
this.openInfoWindowHtml(latlng,'hello');
});
nabe
unread,
Oct 19, 2009, 7:37:55 AM
10/19/09
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
hiroaki さん
有難うございます。
なるほど・・・
click イベントを使うんですね!!
早速、挑戦してみたいと思います。
上手く行ったら報告させてもらいます。
・・・・・・また分からないことがあったら、質問するかもしれません。
その時は見捨てずに、またご教授下さい。
本当に有難うございました。
Reply all
Reply to author
Forward
0 new messages