I am trying to draw polyline and highligting layers with in current view of map using map.extent as geometry. But it is doing every thing fine but some times out side of rectangle layers are highlighting.
I have drawn rectangle using below code:
var graphic:Graphic = new Graphic();
graphic.geometry = map.extent;
graphic.symbol = sfs;
Does map.extent will works for this scenario are I have to do some thing else?