1) Can you write what I need to put in the html part, as in, the
function code
2) When I click an department, the arrow will appear on the overlay
where it should, but when i change to satellite view, i have the
followign code, from Mike
GEvent.addListener(map, "maptypechanged", function() {
if (map.getCurrentMapType() == G_NORMAL_MAP) {
hosp.show()
} else {
hosp.hide()
}
});
which gets rid of my overlay, which i am happy with, but the marker
(red arrow) remains,
which i need to get rid of.
Thanks.
On Mar 23, 2:24 pm, Andrew Leach <[email protected]>
wrote:
> 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
-~----------~----~----~----~------~----~------~--~---