Hexagon Geospatial
MENU

M.App Enterprise

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Occasional Contributor
Posts: 6
Registered: ‎10-17-2016

Map Enterprise Desktop workflow function setFeaturesInvisible is not working

 

Team, 

 

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:

Vector.png

However nothing happens also not when i call it in a custom javascript. Other SC.Map functions like  SC.Map.fitSelectedElements() do work. 

 

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?

 

 

Thanks

 

Tjip

Staff
Posts: 512
Registered: ‎11-12-2015

Re: Map Enterprise Desktop workflow function setFeaturesInvisible is not working

Hi Tjip,

 

The correct method/function here is setLayersInvisible(layers)

eg. SC.Map.setLayersInvisible(layers)

 

You can find the various methods discussed here

 

HTH

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Development Ticket through our Development Ticket Portal.