Select to view content in your preferred language

Does anyone has an idea on how to publish annotation layer into REST API?

1938
2
Jump to solution
01-29-2016 09:44 AM
KushendraShah1
Emerging Contributor

I have been trying to display annotation layer in REST api, I published the layer from map document including other feature layers but I didn't see this layer besides other layers. Is there way to display this layer? Any helps are appreciated.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Kushendra,

   When you publish a MXD as a Map Service that has one or more annotation layers added to the map then when using ArcGISDynamicMapServiceLayer you will be able to see the annotation layer in your app. You can not use a FeatureLayer and point it to the layer ID of a Annotation layer as Annotation layers are not a supported type for FeatureLayer.

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Kushendra,

   When you publish a MXD as a Map Service that has one or more annotation layers added to the map then when using ArcGISDynamicMapServiceLayer you will be able to see the annotation layer in your app. You can not use a FeatureLayer and point it to the layer ID of a Annotation layer as Annotation layers are not a supported type for FeatureLayer.

KushendraShah1
Emerging Contributor

Thanks Robert. It works well. Appreciated your help.

0 Kudos