This worked Duncan, thanks! ( updated http://testing.ptarena.net/map-test/
)


One question, how do i show only one marker at a time?

Right now they accumulate..

I would like to have only one marker showing in the map, at any given
time.



On Feb 18, 3:17 am, duncan_m <[email protected]> wrote:
> Something like this would work..
>
>  function myclick(i) {
>         GEvent.trigger(gmarkers[i], "click");
>         gmarkers[i].show();  //new line
>       }
>
> // add the points
>       var point = new GLatLng(-15.876809,32.475586);
>       var marker = createMarker(point,"Tecnica Tete","<img src=
> \"http://testing.ptarena.net/jfs_icones/jfs_ti_ret_tete.jpg\";><br><ul
> style=\"font-family:arial;font-size:10pt\"><li>Morada...</li><li>Tel:
> 123</li><li>Fax: 123</li></ul>")
>       map.addOverlay(marker);
>       marker.hide(); //new line..
>
> Duncan.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to