Dear Mike;
Thank you for your reply. but I acctually found a way to do it,
I asgin an atribute to my marker as:
marker.status="off";
then on click event I put the marker.status="on" ;
then check if(marker.status=="on"){ do this..}
else do that:
regards..
Mike Williams <[email protected]> wrote:
>
> The problem is that a marker click is an event, rather than a continuous
> state, so it doesn't really have an "else". So the nearest you could get
> would be something like this logic:
>
> Whenever (nothing happens) {
> do this;
> }
>
> Whenever (marker is clicked) {
> do that;
> }
>
> Detecting nothing happening could be done by running a setInterval or
> setTimeout loop, but it would be much more sensible to arrange for the
> "do this" to be triggered by something happening, rather than nothing
> happening.
Tamer Hatoum;
Web Developer and Programmer;
Qatar Navigator Est;
Tel: +974 6026267;
[email protected]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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
-~----------~----~----~----~------~----~------~--~---