This just gave me a thought...

Does the API consider (0, 0) or (1, 1) to be the top-left of the icon?

I have various image editing programs and some use zero as an image's
lowest z or y co-ordinate and some use 1.

Martin.


On 26 May, 23:42, Andrew Leach <[email protected]> wrote:
> On May 26, 8:57 pm, Wouter <[email protected]> wrote:
>
>
>
> > When I zoom out, my marker is moving from position.  (you can see that
> > it starts at the right location, but when you zoom out it will be
> > outside the loaded kml at a certain momen.
>
> This means your iconAnchor value is wrong. Your code shows
>
> icon.image = 'http://liveboard.drwprojects.be/upload/6-cirk.png';
> icon.iconSize = new GSize(32,32);
> icon.iconAnchor = new GPoint(0,0);
> icon.infoWindowAnchor = new GPoint(0, 0);
>
> If your icon is 32x32, I would expect that iconAnchor would be
> (16,16), not (0,0) which is the top left-hand corner. If you look
> where the top-left corner is when you zoom, you'll see it doesn't
> move. The centre of the circular icon appears to move, but that's
> because it's fixed to the top-left corner.
>
> You may need your infoWindowAnchor to be (16,16) as well.
>
> Andrfew
--~--~---------~--~----~------------~-------~--~----~
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