getLayerUrl
Hi, I am trying to add a layer action in the HTML Viewer 2.5 that will open up the layer's original mapservice REST endpoint for users to see/use.
When I use the layer.getLayerUrl() method it returns the wrong layer, but in the right map service.... Anyone seen this behaviour?
Regards,
Marc
0
-
Hi Marc,
I'm not sure how you are referencing the layer to use the "getLayerURL()" method but if you use the "Get Map Service Info" activity and fill in the map service ID and layer name, it will automatically generate the map service URL and layer ID for you. So all you need to do now is use the following string to retrieve the REST endpoint:
mapServiceURL + "/" + layerID
I hope this helps.
Carmen0 -
You can use Map Service Replacement Token {MapServiceUrl} in your feature description or long description to show the REST endpoint for the layer. 0
Please sign in to leave a comment.
Comments
2 comments