Allow a layer definition query in the Javascript viewer

Idea created by jesse.varner_noaa on May 11, 2012
    • 1_jdonoghue2
    • ufsurvey
    • jcichon
    • carterius
    • jesse.varner_noaa
    • 1_samlarsen
    • 1_mdlong
    In the Javascript viewer, currently there is no way I can see to filter the results displayed from a dynamic map service.

    It would be nice to have some way of applying the 'layerDefs' parameter to a dynamic map service. Several of our map services are designed with this functionality in mind. See one of NOAA/NGDC's custom Javascript mapping apps for an example of this sort of usage (select different repositories to apply a filter to a single map service layer):