Currently in the process of re-publishing a number of map services to ArcGIS Server. Some of these make extensive use of definition queries on multiple instances of the same datasource. In a simple example, a feature class of oil & gas leases may be the source for multiple layers in the MXD, each with have a definition query on expiration date, to symbolize with different color by Q1, Q2, Q3... of a given year. Other scenarios may have dozens of layers using the same data source with a def query.
- Is it that (still) the best way to do it?
I remember seeing that ArcGIS Pro offers functionality for using multiple definition queries on a layer/data source that can be selected (turned on/off). But I don't think there is a way to publish that out to a service.
How about definition queries at the web level? JSAPI allows overriding feature symbology and offers a def query feature, right? Has anyone looked at how that performs compared to using a definition queries as described above?