How to deactivate the popup

536
2
09-24-2011 10:38 AM
SwenWaschk
New Contributor III
Hi,

I've been searching and reading a lot of forum entries but I can't seem to figure out how to deactivate the popup when i start adding graphics. I've changed this sample so the identify is activated once a button in the html is clicked. And I want to deactivate it with a click on another button.

Identify features on a map - sample

How do I do that?
0 Kudos
2 Replies
StephenLead
Regular Contributor III
Sven,

You can do this by assigning the dojo.connect call to a variable, which allows you to switch it off later.

//to switch it on
var clickListener = dojo.connect(map,"onClick",executeIdentifyTask);

// to switch it off
dojo.disconnect(clickListener);


Steve
0 Kudos
SwenWaschk
New Contributor III
Hi Steve,

Thanks, I'm going to try it and I'll get back to you.


Swen
0 Kudos