Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am adding a picture marker symbol to graphic layer like this in Map click event:

const mapPoint:MapPoint = map.toMapFromStage(event.stageX, event.stageY);
mapPoint.spatialReference = map.spatialReference;
geom= mapPoint;

var picEmbeddedClass:Class;

var pictureMarker:PictureMarkerSymbol = new PictureMarkerSymbol(picEmbeddedClass,100,100);

var myGraphicPic:Graphic = new Graphic(geom);
myGraphicPic.symbol = pictureMarker;

which works fine. When I zoom in and zoom out it maintains its width=100 height=100 upon every change in zoom level to adjust its size.

How to make it retain its size as it was while adding it to graphics layer, irrespective of zoom level. As I zoom in it may seem bigger to me and small as I zoom out. Thanks

share|improve this question

It's not possible to do so, using a symbol. What you could do, is to create a polygon at that location, according to your image. It will expand and contract as you zoom in & out

share|improve this answer
You mean to say rather than creating map points I should create a polygon? Can you please explain further or paste an example. – Omega Cancer Oct 16 '11 at 11:26
I had posted another question please look at that and suggest. It is here… – Omega Cancer Oct 16 '11 at 11:35
Can I accomplish the same by extending ESRI's Graphics class? – Omega Cancer Oct 16 '11 at 11:37
Yes, create a polygon graphic (say a circle) at the location of the map click, and add it to the graphic layer. – Devdatta Tengshe Oct 17 '11 at 0:04
Polygons need a symbol to render like Simple Fill Symbol and can only create angular shapes like Triangles. I want to create arcs and other complex shapes that contact and expand as Polygon does, please guide me a way. – Omega Cancer Oct 17 '11 at 3:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.