On Mar 31, 11:33 pm, Bastian Schnitzler <[email protected]> wrote:
>
> Sorry, you we're right. Function closure was one of my problems. The
> other problem now is, that not the whole icon, but just a small area
> on the top left of the icon, is triggering the event. What can I do
> for that?

Define all the properties of your custom icon. Here...
  var DefaultIcon = new GIcon(G_DEFAULT_ICON);
  DefaultIcon.image = "cropped/mapiconblack.png";
  DefaultIcon.iconSize = new GSize(42,44);
you base your icon on Google's default tear-drop-shape icon, and only
change the image and the size. There are lots more properties,
including a transparent image (which handles the click/mouseover in
one browser) and an image map (which handles events in other
browsers). In your case, those are still the default size and shape.

Mike has a tutorial on that, too. http://econym.org.uk/gmap/custom.htm

-- 
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.

Reply via email to