hmmm.. Thanks Martin.


On Sep 29, 6:26 pm, Martin <[email protected]> wrote:
> You'd probably need to create an 'onload' event for the image object
> and get the image width and height AFTER it has loaded.
>
> Martin.
>
> On 29 Sep, 03:11, Farooq Mahmood <[email protected]> wrote:
>
>
>
> > Rossko's guess was right It was anchor property problem. Here is the
> > code I am using to get the anchor.
>
> > function getImgAnchor(imgSrc){
> >         var newImg = new Image();
> >         newImg.src = imgSrc;
> >         var x = newImg.width
> >         var y = newImg.height;
> >         var point = new google.maps.Point(x/2 , y/2);
> >         alert(imgSrc + " : " + point);
> >         return point;
>
> > }
>
> > Sometimes that var x and y are just 0, 0 even newImg.width and
> > newImg.height have different values e.g. (12, 12).
> > Anyway it is not a google maps issue rather than javascript issue.
>
> > Thanks Rossko for the perfect guess.
>
> > Regards,
> > Farooq
>
> > On Sep 28, 7:22 pm, Pil <[email protected]> wrote:
>
> > > What browser are you using? Do you use a sprite image as marker icon?
> > > A link to the problematic map would be a good idea.
>
> > > I'm asking because there is a reproducable flicker bug with the icons
> > > - but only in IE 6 and when using a sprite image for the marker icons.
>
> > >http://www.wolfpil.de/v3/toggle-cats.html
>
> > > This seems to be a CSS bug in IE 6 (well, just one of many others).
> > > And since the v3 Maps API doesn't support IE 6 any more, I think it
> > > shouldn't be fixed.
>
> > > (Much too time-consuming for only the worst of all browsers.)
>
> > > So the easiest solution would be in this case to use a separate icon
> > > for all markers and a separate hover icon.
>
> > > Farooq Mahmood wrote:
> > > > Thanks for the reply and sorry if you get offended, I think I have
> > > > mentioned everything thing quite clear in my post regarding the word
> > > > 'bug'.
>
> > > > Regards,
> > > > Farooq
>
> > > > On Sep 24, 6:36 pm, Rossko <[email protected]> wrote:
> > > > > > I am getting a very strange behavior while changing the marker's 
> > > > > > icon
> > > > > > on mouse hover. Marker is changing its location as well on 
> > > > > > mouseover.
> > > > > > When I look at the change it seem like that this was a bug and has
> > > > > > been fixed on 3.1 Jun 17, 2010 (if it is the same issue).
>
> > > > > Don't shout 'bug' unless you can provide a 
> > > > > demonstrationhttp://groups.google.com/group/google-maps-api/web/why-including-a-li...
>
> > > > > As we can only guess, my guess is that you haven't set the image
> > > > > anchor properties properly.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to