On Dec 7, 12:56 am, outaTiME <[email protected]> wrote: > Hi guys im currently using the static maps api, and i trying to use my > custom image marker but i need to customize the anchorPoint to ... it > is possible ?? im read documentation i make some test cases but > nothings ... > > ... mmm ... i have the impression that I will have to make a math calc > and change the current lat / lng acording the location i want ... >
Not enough information, although I *guess* that your custom markers don't have their "anchor point" in the middle at the bottom like a standard marker. The Static Maps API has two easy options: middle- bottom if you have a shadow, and centre if you don't: "Custom icons that have a shadow:true descriptor (the default) will have their "anchor point" set as the bottom center of the provided icon image, from which the shadow is cast. Icons without a shadow (setting a shadow:false descriptor) are instead assumed to be icons centered on their specified locations, so their anchor points are set as the center of the image." If you need something else, design a large custom marker most of which is transparent but where the anchor point is in the centre of the total image. So for example, if you want an icon where the anchor point is at the bottom-left, put that point in the centre of the image -- your icon will be in the top-right quarter of the image, with three- quarters of it totally transparent. There is a maximum size of 4096 pixels total. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
