How does the RemoveLayerCatalogItem command work
I'm trying to remove layer that I added using the AddCatalogLayers command. Does anyone know what kind of argument this command takes? If I use the same format as AddCatalogLayer (catalog.mapservice.layername) I get this errormessage: 'Workflow error: Error executing this activity: Cannot read property 'indexOf' of undefined'.
0
-
You didn't try the "any" class? Read the docs! XD
Since the AddCatalogLayers command says that it takes a comma-delimited list of layer ids, my guess is that this is what the RemoveLayerCatalogItem wants. Did you give that a go? Maybe try an actual enumerable object instead, since the underlying code wants an index at some point (though my guess is that they want to split an input string by commas)?
I also see this ominous warning in there: "will not work for map service which has multiple layers like dynamicmapService"0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar