Select to view content in your preferred language

identify and remove layer

406
0
12-05-2013 04:37 AM
GiovanniZambotti
New Contributor II
Hi there,

I am developing a Crossroads of Migration map (http://cga-3.hmdc.harvard.edu/migration/) that allows to pick a country
from a pull down menu and display human migration movement.

I would like to do the same enabling the click on the map (identify the name of a country) and display the migration movement, but
unfortunately the layer (feature layer) does not get remove before I click to an other country (see attached pic)[ATTACH=CONFIG]29610[/ATTACH][ATTACH=CONFIG]29610[/ATTACH].
I have tried to disable the executeIdentifyTask (dojo.disconnect(myOnClick_connect)), but it does not work properly;
any suggestion will be much appreciated.

Thank you, Giovanni
0 Kudos
0 Replies