Select to view content in your preferred language

Help required with size of the symbol

776
0
10-15-2011 04:04 AM
omega_cancer
Frequent Contributor
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;


[Embed(source='assets/images/globe.png')]
var picEmbeddedClass:Class;

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

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


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

First I was experimenting with TextSymbols so I posted this.
http://forums.arcgis.com/threads/41418-Disabling-TextSymbol-Resizing-upon-Zooming.
Tags (2)
0 Kudos
0 Replies