I have created a workflow in the desktop of mapp Enterprise. In that workflow I call a function using a formaction
<FormAction name="Test3" label="Test3" action="SCRIPT[SC.Map.setFeaturesInvisible('Percelen')]" />
The layer name exist as vector data:
In the log file i noticed the following messsage:
SC.Map.setFeaturesInvisible is not a function. (In 'SC.Map.setFeaturesInvisible('Percelen')', 'SC.Map.setFeaturesInvisible' is undefined)
I tried also IG.Map.setFeaturesInvisible('Percelen') but that call does not work either. Any one suggestions? Is there a list which SC.Map funtions I can use?
The correct method/function here is setLayersInvisible(layers)
You can find the various methods discussed here