I am trying to add a layer from one of our ArcGIS Server services to a map in ArcGIS Online. I only want a subset of the data from a layer in the service:
I think I have created the query correctly, but in ArcGIS Online when I go to Add|Add Layer from Web|ArcGIS Server Web Service and paste in that URL I get the error message "The layer is not a supported type and can not be added to the map. If I leave off the query the layer can be added.
Is it possible to create a query in this way? If not, is there another way to add just a subset of a layer?
ArcGIS.com doesn't support adding layers with a query expression. The map in ArcGIS.com also doesn't currently support defining a query on a layer. However, our Silverlight based application, ArcGIS Explorer Online, will allow you to define such a query (called a filter) and apply it to a layer in the web map. Subsequently, the ArcGIS.com map viewer will respect this layer filter when opening the web map.
Here's a help topic that describes how to filter the data in a layer.
Thanks for responding so quickly. I was able to use Explorer (I didn't see the filter option, I had to use the Tools|Query tool). I created the map, and then uploaded it to ArcGIS Online. But now I can't do anything with it. I would like to embed it on my web site, but I can't actually open it in ArcGIS Online, and when I click Share it does not give me the option to get the embed code like with all my other content. So can users only see this in Explorer? That doesn't work with our model of providing maps on the web. Now all our users would have to download Explorer just to see this map. Or am I missing something?
Thanks, Mike
ArcGIS.com doesn't support adding layers with a query expression. The map in ArcGIS.com also doesn't currently support defining a query on a layer. However, our Silverlight based application, ArcGIS Explorer Online, will allow you to define such a query (called a filter) and apply it to a layer in the web map. Subsequently, the ArcGIS.com map viewer will respect this layer filter when opening the web map.
Here's a help topic that describes how to filter the data in a layer.
OK, I see. I tried that and was able to share the Explorer Online map with my ArcGIS Online account and deploy it that way. Awkward, but it seems to work!