AnsweredAssumed Answered

map.graphics.add not working in FeatureLayer's click event but work in mouse-over event

Question asked by ersi@linhnguyen.com on May 8, 2016
Latest reply on Nov 9, 2016 by fellj

I tried to add  a graphic with new symbol

such as

 

var symbol  = new SimpleFillSymbol(....

 

 

var g = new Graphic(evt.graphic.geometry, symbol  );

map.graphics.add(g);

 

it works in feature's mouse-over  (hover) but not click event?..

i.e.. work in layer.on('mouse-over', function (evt) { ...

but not in layer.on('click', function (evt) { ...

Am I missing something?

 

Thanks

 

 

 

 

 

 

Outcomes