babbot

PictureMarkerSymbol custom anchor point

Discussion created by babbot on Dec 7, 2010
Latest reply on Dec 7, 2010 by verngis
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.

Outcomes