Hi,
in the map viewer I've configured a feature layer to use an uploaded (custom) symbol for features.
This symbol resembles a flag pole with flag. Thus the symbol's anchor should be on the bottom left corner (flag pole base), rather than the center.
I'm aware I could work around this by adding enough transparent margin to the bottom and left side of the PNG file so that the flag pole base becomes the center of the image.
But it would be better if I could explicitly specify the position of the anchor in the image - is this possible? If not on the web UI, using the Python API would be fine too.
Solved! Go to Solution.
this is currently not possible to set anchor points on symbols in Map Viewer. You would have to alter the web map JSON written out.
https://developers.arcgis.com/web-map-specification/objects/esriPMS_symbol/
this is currently not possible to set anchor points on symbols in Map Viewer. You would have to alter the web map JSON written out.
https://developers.arcgis.com/web-map-specification/objects/esriPMS_symbol/
Thanks for this.
So, normally the anchor would be the center of the x by y pixel bounding box?
To "cheat" it into where you want to be, add blank space to the bottom so that the new bounding box anchor point is where you want it?
I've wondered about this for years...didn't know the proper term to ask!
Thanks!
Yup its captured at the center of the image.
Yup what you are describing is covered towards the end of this blog:
Great article. Covers the exact thing! Surprised to see it so recent...I've been wondering about this for years.
Thanks!
😁
yes. To be precise, not "blank", but transparent is what it's called in most drawing applications 😉