Usuario anónimo  |  Ingresar  |  Regístrate
Mensaje dentro Help

How to show InfoWindow by click on GPolyline

Responder 
#1 - 28/11/2011 8:09:15 Reporta abuso | Link permanente
rsoft
Fecha de registro: 11/03/2011
4 posts en todos los foros
How to show InfoWindow by click on GPolyline

Responder Citar
Hi!
How can I show InfoWindow by click on GPolyline?

// line is GPolyline, position - point at the line
GInfoWindow window = new GInfoWindow(position, html, false);
window.gPolyline = line;
gmap.addInfoWindow(window);

But it does not work. Does exist any way to do it?
Thanks.
Volver arriba

Respuestas
De en 15
#2 - 12/12/2011 19:38:14 Reporta abuso | Link permanente
subgurim
Fecha de registro: 18/10/2006
2003 posts en todos los foros
RE: How to show InfoWindow by click on GPolyline

Responder Citar
Great ;)
Volver arriba

#3 - 28/11/2011 9:05:32 Reporta abuso | Link permanente
rsoft
Fecha de registro: 11/03/2011
4 posts en todos los foros
RE: How to show InfoWindow by click on GPolyline

Responder Citar
I resolved my problem!
GPolyline object must not be added directly to the map. I shoul be added by gmap.addInfoWindow(window);
only.
Volver arriba
De en 15

Powered by Subgurim.NET