Select to view content in your preferred language

Identify widget 3.5 by rscheitlin - Problem identifying on all Parcel Layers

716
6
10-30-2013 07:31 AM
KathyKope
Deactivated User
I am using the compiled version of the identify widget (3.5) to identify parcels in my web app.

My rest endpoint for the Parcels mapservice has multiple parcel layers.  Each layer was created with different scale dependencies and symbology.

In the IdentifyWidget.xml file, the URL and layer ID is required.  When I try to use the identify widget in my web app, it only works when the map has been zoomed into the scale for the layer ID.

Is there a way I can make this work with the multiple layers in my map service? 

Thanks,
Kathy
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Kathy,

   So the Identify Widget is setup to only identify layer that are currently visible in the map (i.e. respecting scale dep. and visibility setting) when using the identifylayeroption of visible. So I am not sure what your concern is. Can you share your IdentifyWidget.xml and any more details that would help explain what are wanting that you are not seeing.
0 Kudos
KathyKope
Deactivated User
Robert,

Thanks for responding so quickly.  I have uploaded a zip file containing the identifyWidget.xml as well as text for my parcel service.

There are many layers in the Parcel service.  In the identifyWidget.xml file, I used layer id of 28.  In the web app, if the map is zoomed into 1:7750, I get the results from the Identify.  For all other scales/layers, no results are returned.

You can check out my webapp at http://www.co.rock.wi.us/Rock/kaktest

If you need any additional information - just let me know.

By the way - we are using many of your widgets!!  They are so well done and have enhanced our web maps!!!

Thanks,
Kathy
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Kathy,

   OK those are the expected results based on the way you have it configured.
Because you have:

<layers onlythese="true">
This tells the widget that it will only display results for the layer(s) that you define with a layer tag. So because you have only defined the sub layer #28 it is going to be the only one that you will get results for. If you want other sub layers to be identified then you need to configure those layers as well.
0 Kudos
KathyKope
Deactivated User
Thanks again for you quick response! 

I tried using the <layers onlythese="false"> and it did return results for all layers.  The results listed all fields from the feature layer.  I didn't see a way to specify which fields would be returned by doing it this way.  Is there a way?

The users(public) tends to get confused quite easily.  I would prefer to give them the choice of what they want to identify by selecting the specific service (parcels, condos, addresses, survey lines, etc.).  I know that I can exclude layers but in our scenario we plan on including searches for at least 4 operational layers.  Getting results for these, I feel would be confusing to them.  Just a little background for what I am trying to accomplish.  So I would really prefer to use the <layers onlythese="true">.

When using the <layers onlythese="true">, if more than 1 layer is configured, the drop-down contains an entry for each parcel layer.  This would require the user (in this case the public) to know which scale they are currently on and select the correct entry in the drop-down list in order to get results using the widget.  Is this correct?

Is it possible to list multiple url's and id's within a layer?  Is it possible for me to configure the widget to be able to list the layer only once but have the search return results from the configured layer which the user is currently zoomed into?

Could my issue be resolved by creating the map document/service differently?

I appreciate your help on this issue.

Thanks,
Kathy
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Kathy,

I tried using the <layers onlythese="false"> and it did return  results for all layers.  The results listed all fields from the feature  layer.  I didn't see a way to specify which fields would be returned by  doing it this way.  Is there a way?

No. If you want to specify which fields are returned then you have to specify which layers are to be identified.

When using the <layers onlythese="true">, if more than 1 layer is  configured, the drop-down contains an entry for each parcel layer.  This  would require the user (in this case the public) to know which scale  they are currently on and select the correct entry in the drop-down list  in order to get results using the widget.  Is this correct?
No there is an "All layers" option in the drop down that means all configured layers not all the layer that are in a map service.

There is not a good way to handle having one listing in the drop down for multiple scale dependent layers.
0 Kudos
KathyKope
Deactivated User
Thanks again for you quick response even though it is not the response I was hoping for.
0 Kudos