What do you mean it breaks the widget? What code are you using to hide that div?
Hi @Anonymous User
If you could attach your code, it would be easier for us to assist.
Generically speaking, if you had a div with id "distanceMeasure" declared in your html, you can hide the div like this in JS:
var selectedDiv = dojo.byId(divId);
if(selectedDiv) {
selectedDiv.style.display = "none";
}
to show the same div, you can then call:
selectedDiv.style.display = "block";
Hope that helps.
Regards,
Derrick