PictureMarkerSymbol custom anchor point

758
1
12-07-2010 05:41 AM
BabbageOcelot
New Contributor
Hello JS developers,

I cant find any guidance on the following, so feel free to point me to some links.

I'm looking for a way to set the relative position of a graphic, specifically a PictureMarkerSymbol, to its underlying point geometry; this is necessary to use the pushpin style markers prevalent these days.

As far as I can tell, the picture is rendered with its centre on the geometry point, which isn't going to be correct for a pushpin with a point on the bottom!

I suppose creating a graphic with transparent padding is one solution, but that will cause pain when the user clicks on the sizeable transparent portion expecting [a different operation].

Any ideas?

Regards,

Ben.
0 Kudos
1 Reply
DavidVernau
New Contributor
Hi Ben,

I believe you can use the xoffset and yoffset properties of the parent MarkerSymbol class.

Cheers
0 Kudos