Retrieving Data only for visible map extent using Query Layer

2243
3
02-21-2012 06:59 PM
SureshMali
New Contributor
Hello all

I have created a query layer to fetch huge data from SQL Server in ArcMap. The data is displayed on zooming into particular level but since all the data is fetched on page load increasing the page load time, how can I limit the data returned by REST service depending on Map extent so that the service fetches only data visible for visible map extent and not all? Can anyone please suggest me a workaround for this?
0 Kudos
3 Replies
RaviNarayanan
Esri Contributor
Suresh,

Can you please provide some additional information on how you plan to display the data -- will it be a feature layer or as an exported map image?
0 Kudos
SureshMali
New Contributor
Hi Ravi,

I am working on both the ways, but currently I am more concerned about implementing it in feature layer.

Thanks
0 Kudos
RaviNarayanan
Esri Contributor
Suresh,

Query supports a spatial filter (geometry) and various options for spatial relationship. Have you considered this option?
0 Kudos