Select to view content in your preferred language

Search Function?

2631
6
06-11-2012 12:15 PM
MaxFarrell
New Contributor
Is there a way to search your data based on an attribute?...then zoom to a particular record?
Tags (2)
0 Kudos
6 Replies
MikeMinami
Esri Notable Contributor
No, the out-of-the box map viewer as part of ArcGIS.com doesn't support this. However, if your web map has services for layers, the service supports it. You could write your own app to do this.

Thanks,

Mike
0 Kudos
maryandrews
Regular Contributor
Searching seems like a basic tool.  Why don't ArcGIS online Web Mapping samples allow this? 

I was playing with trying to use the JavaScript API to enable this functionality on my hosted ArcOnline Service but it seem like the Service is not a "map service" rather it's  a feature service.  Is there any way to get the ArcOnline service to be a "map" service instead of a "feature" service?
0 Kudos
MikeMinami
Esri Notable Contributor
We may support it in the future. Search implies selections, which the map viewer doesn't currently support. Then, you'll probably want to see the results, which means some sort of tabular display...

Hosted tiled map services currently don't support queries because they are just composed of a set of tiled images. Hosted feature services do support queries. ArcGIS Server map and feature services both support queries, unless the map service is just tiles, which is rare.

Thanks,

Mike
0 Kudos
maryandrews
Regular Contributor
When you publish a map service to ArcOnline is there a way to create both a "map service" and a "feature service".  The only think I can see is the "feature service".
0 Kudos
ReneeJudkins
Deactivated User
No, the out-of-the box map viewer as part of ArcGIS.com doesn't support this. However, if your web map has services for layers, the service supports it. You could write your own app to do this.

Thanks,

Mike



Hey Mike,

I was wondering if you had any specifics on what would need to be in the map service in order to get the search to work.  I'm trying to get enough details about this so i can go to my team and be able to tell them what we need to do. Any further information you could provide would be fantastic.  Thanks so much for your help!

Renee
0 Kudos
MikeMinami
Esri Notable Contributor
You can take a look at the JavaScript API.

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm

Here's a specific sample that queries the attributes of a service.

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/query_nomap.html

Hope this helps,

Mike
0 Kudos