Query widget & MapService (vs Feature Service)

1852
1
09-24-2015 08:14 AM
FabioD_Ovidio
New Contributor II

Hi,

I am not able to display geometries after a query on a layer on the web map coming from a MapService. The results are only attributes even if I have set the output style (lines) from the widget configuration.

With the same layer coming from a Feature Service instead I am able to query it and display not only the attributes but also the geometries on the map and the relative attribute table (so I can export it as a CSV file).

Why? What's the matter?

Thank you very much!

Fabio

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Fabio,

   Do you have the ObjectId and Shape fields listed in the fields list when you look at the rest endpoint in your browser for that layer? If you have the ObjectId and or Shape fields hidden in the MXD when you publish the service you will not be able to return geometry.

0 Kudos