Aller au contenu principal

How do I do a global search on layers that are turned on and turned off?

Répondu

Commentaires

4 commentaires

  • Cam Barnard

    Hi Larisa Johnstone

    Sounds like you've already found the settings to include/exclude layers from identify and search as part of the Layer Extension in Map. 

    You are correct that the global search only searches for layers that are turned on in the layer list. Those layers don't have to be currently visible (i.e. they not be in scale range) but they do have to be 'enabled' or turned on in the layer list. I don't think there is any way 'out of the box' to get the global search to search for layers that are turned off.

    Yes, you could absolutely create a workflow that gets all layers from the map, searches everything regardless of whether it is off or on, and if a result if found for that layer, turns that layer on. Later this year we will also be releasing VertiGIS Studio Search which allows Esri layer data to be 'pre indexed' and creates a super fast search endpoint that includes suggestions (by default only Esri geocoders provide suggestions). This would be your most performant way to accomplish this. Depending on the number of layers you are searching it could many seconds to query each layer using the Esri REST endpoint and check for results ... that is one of the reasons that we limit our search to layers that are turned on by default. 

    If you go the Workflow route, be aware you can still use the existing search box in the interface, and you can re-configure it to call a workflow rather than perform its default behavior (you don't need to create your own search interface unless you want to). 

    0
  • Larisa Johnstone

    Thank you Cam. 

    I appreciate you getting back to me. I am not exactly how to configure that workflow. This is all a little overwhelming as  I am just getting my feet wet in creating them. I am going to play around with it and see what comes of it. From what you said, it sounds like it might not be a very fast way to search (using the layer rest end points),  but I want to try it out any way.

    Sounds like the release of the VertiGIS Studio Search which allows Esri layer data to be 'pre indexed' will be that solution. 

    Thanks again

    Larisa

    0
  • Jamie Petersen

    @Larisa This isn't answering your question exactly, but maybe an alternative you could work with.  You can both have a layer turned on in the map, but also have it not visible in the layer list.  That allows it to be searched on every global search or identify regardless of layer list status.  It won't turn on a layer for you, but it will show the result's geometry and display the result detail for the feature.

     

    0
  • Larisa Johnstone

    Thank you Jamie, that is definitely something to think about. I did not even consider that. I am going to try it out and see how it works for us. 

    I appreciate your reply

    Larisa

    0

Vous devez vous connecter pour laisser un commentaire.