On May 26, 10:28 pm, Martin <[email protected]> wrote: > This just gave me a thought... > > Does the API consider (0, 0) or (1, 1) to be the top-left of the icon?
according to Mike Williams it is the latter: http://econym.org.uk/gmap/custom.htm > the values count from the top left corner which is considered to be the > point (1,1). This may well be different from what you see in an image > editing program, where the top left pixel is usually considered to be > (0,0). -- Larry > > 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 -~----------~----~----~----~------~----~------~--~---
