On Feb 19, 10:56 am, Martin <[email protected]> wrote:
> Hi guys,
>
> I am trying to use custom markers for a small pet ptoject of mine. The
> markers I've set work fine in both MSIE and Chrome, but unfortunately,
> this is not the case for Firefox in any incarnation I tried (as in:
> 0.9, 2.0 and 3.0). It seems they are clickable in a small area (about
> 20 px wide and 40 px high), but not outside of this area, even tough
> the my markers are generally 48x48 px large...
>
> Relevant parts of my code:
> -----------------------
> var latlng = new GLatLng(lat,lng);
> var myIcon = new GIcon(baseIcon);
> myIcon.iconSize = new GSize(48,48);
> myIcon.iconAnchor = new GPoint(24,48);
> myIcon.image  = "/img/marker/std.png";
> myIcon.shadow = "/img/marker/shadow.png";
> myIcon.shadowSize = new GSize(73,48);
> myIcon.infoShadowAnchor = new GPoint(27,47);

It sounds like you are not setting the click target for the markers
(but you didn't post a link so I can't tell for sure, I can't see what
baseIcon is)
For IE:
http://code.google.com/apis/maps/documentation/reference.html#GIcon.transparent
For all other browsers:
http://code.google.com/apis/maps/documentation/reference.html#GIcon.imageMap

  -- Larry




>
> var markerOptions = { icon:myIcon };
> var myMarker = new GMarker(latlng, markerOptions);
>
> GEvent.addListener(myMarker, "click", function(stuff) {
> getDescription(stuff)
>
> });
>
> map.addOverlay(myMarker);
>
> -----------------------
>
> Any ideas how to make markers clickable in their entirety?
>
> Greetings
>
> Martin
--~--~---------~--~----~------------~-------~--~----~
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