Issue with drawing polygon and pins

1421
1
08-26-2013 02:43 AM
SandeepG_S
New Contributor III
Hi All,

I am drawing a polygon using a graphic (set of polygon points). It is adding to the mapview properly.

Now I want to add some pins on the border of the polygon. I am creating a pin using one of the polygon points and adding to the
mapview. But strangely, the pin thats been added is not on top of the border of the polygon. But its bit outside a boundary.

I have attached a screenshot to illustrate the same. The red points are the ones which are supposed to be added on top of the polygon border. [ATTACH=CONFIG]26964[/ATTACH] (http://d.pr/i/eOeT)

I am wondering whats going wrong. Please help me out.

Thanks,
Sandeep
0 Kudos
1 Reply
DiveshGoyal
Esri Regular Contributor
When you use a picture marker symbol, the center of the picture is aligned with the coordinates of the point geometry.
In your case, this may be causing the tip of the pin to look out of place.
To fix this, you can use the offset property on the picture marker symbol.
0 Kudos