On Mar 23, 2:05 pm, Patrick <[email protected]> wrote:
> Lads,
>
> can anybody help on these.
> 1) Is it possible to make the small image clickable, linking it to a
> larger image.
When you construct your infoWindow, add an onclick attribute to the
<img> tag. Make sure the handler function is global; easiest perhaps
to pass an argument:
<img src="..." onclick="showlargeimage('myimage.jpg')"> Be careful of
the quotes.
> 2) When I have my department selected, and the red arrow appears, if i
> click Satellite or Hybrid view, I don't want the red arrow appearing.
> Does anyone know the code to remove the pointer image.
Listen for a maptypechanged event on the map; if the current map
shouldn't show the overlay, remove it. You'll need to keep some sort
of global reference to the marker so that your code knows what the
"current" arrow is -- it could be null if nothing has been selected.
Does that help?
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---