Select to view content in your preferred language

PictureMarkerSymbol Shifting on Zoom

2703
2
11-11-2013 12:44 PM
Labels (1)
RyanCoodey
Frequent Contributor
Google searching turned up a few very old posts about this issue with no fixes/workarounds but I just ran into this issue on 10.1.1.

With a SimpleMarkerSymbol the point graphic stays spot on when zooming in and out, but with a PictureMarkerSymbol when you start zooming in the image starts shifting up (north) and when zooming out it starts shifting down (south).

Any ideas for a workaround to this issue?

Thanks a lot!
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
You can set the OffsetX and the OffsetY of the picture marker symbol to an half of the image Width and Height.
0 Kudos
RyanCoodey
Frequent Contributor
Thanks for the info dbroux... In trying this out I found some odd behavior, when I first set this as you said (offsets to half the image size) it seemed to be working. I really wanted an offset (not half the image size) for the image though so I decided to try it again and sure enough it had the issue. But then I set it back to what you said again and it was having the issue too. Strange. I cleaned the solution and rebuilt and then it was working ok again... hmmm. So I then put the offsets i truley wanted in and did a clean and rebuild and that seems to work fine too.

Odd that cleaning the solution does this... hoping it doesnt switch back to the unwanted behavior at some point. But thanks a lot for the post and helping to get this working.
0 Kudos