On May 26, 12:45 pm, "[email protected]" <[email protected]> wrote: > > One thing, I didn't understand your last bit about tweaking the custom > icon?! > > you mean change size of anchor? > I can only click right in the middle of my icon like in a 5px X 5px > clickable area?!
No: it's not an anchor value. See Mike's tutorial again: http://econym.org.uk/gmap/custom.htm There are a number of "images" which are all used together to create a fully functioning marker. There's also an "imageMap", which is an array of points. Mike doesn't cover the imageMap in his tutorial, but it's not particularly difficult. The array consists of pairs of numbers which are the pixel coordinates within the icon of the edge of the clickable area. In his example, the first point is at (9,0), followed by (6,1) and so on around the edge of the active part of the icon. The top-left pixel is numbered (0,0), not (1,1). In order to have a fully-functioning custom marker, you need a fully- defined GIcon. -- 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.
