Add scale to graphic (esri js)

77 Views Asked by At

Somebody know how can i add to graphic a scale (a single graphic)? I have graphics layer and i need for each graphic in it to have a different scale

I have now all the graphic shown in the same scale

I did it by using map.graphics.add() I used also SimpleSymbol

Thank you

1

There are 1 best solutions below

0
On

var polygon = featureSet.features[0].geometry; var polygonExtent = polygon.getExtent();

for each graphic in it to have a different scale (get geometry extend and zoom to extend)