How to filter on a layer that uses cache tiles ?

1808
2
12-18-2012 08:30 PM
Reza_MahmudunNaym
New Contributor III
Hi

I am using a dynamic map service in a web application (Rest api). I have a filter option on the map service, where I used the filter property of rest api option.

Now I need to use tile cache service to get better performace. But my problem is , I did not find any way to do filtering on the tile map service. Can anyone help or suggest a solution ... how I can manage filtering on a pregenerated tile cache service...

Thanks
Naym
Tags (2)
0 Kudos
2 Replies
StevenMoore1
Esri Contributor
Are you trying to filter the map service based on some kind of definition query on the attributes of the data used to build the service?

If so, I don't think you will be able to do this with a tiled service, as it's essentially a folder of images. If you look at the REST endpoint for the service you won't see any layer or field names that could be used to query or filter by.
0 Kudos
j_brad
by
New Contributor

I know this is an old question, but you can do this using the ArcGIS Maps SDK for Javascript:

https://developers.arcgis.com/javascript/latest/sample-code/layers-imagerytilelayer/

https://gavinr.com/geometry-filter-tiled-layers-arcgis-javascript/

 

0 Kudos