Hi guys,
I have custom menu in my application.
I have layer which definition expression should change after i check or uncheck menu check Box:
if (document.getElementById("wyaldeni_tbilisi").checked == true) {
csvLayer.definitionExpression = "Pipeline_Subtype = 3";
}
else
{
csvLayer.definitionExpression = "";
};
check works fine, but when i uncheck box nothing happens, definitionExpression stays same.
What i do wrong?
Thanks in advance
Solved! Go to Solution.
Your layer needs to be triggered to refresh I think, and I believe csvLayer.refresh() will force it to do just that.
Your layer needs to be triggered to refresh I think, and I believe csvLayer.refresh() will force it to do just that.