Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part III

178939
776
04-30-2013 03:58 PM
RobertScheitlin__GISP
MVP Emeritus
All,

   Here is a new thread to post questions and discuss the Enhanched Search Widget. The old thread was getting too long.
Tags (2)
776 Replies
RobertScheitlin__GISP
MVP Emeritus
Rhett,

   I don't use event themes much at all myself. I was just trying to think of a possible cause for his issue with such limited info and thought that he might has not defined a spatial reference for an event layer or something.
0 Kudos
ThanhThai
Emerging Contributor
Thanh,

   I am not sure why your points are not showing... Can you look over near Africa at 0,0 coordinates and see if they are there? Is there layer an XY event Layer in ArcMap?

You can not add back something that was never there... The eSearch has never had the ability to draw a circle for selection or the ability to move or edit a polygon.


Thanks.  I'll take a look and advise.

About the circle and edit features... what I meant was for us to have those features from the original search in your eSearch.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Thanh,

   OK, so I see that the OTB search widget does have a select by circle (now). I will add this to my enhancement list. I am still a little confused as far as your "Move Polygon or Edit Polygon features back into your eSearch" comment though.
0 Kudos
ThanhThai
Emerging Contributor
Hi Robert,

You are right, the moving and modifying of the polygon are not in the original search. I apologize for the confusion.  (They're actually in another application that I use.  Although, they could be nice features for you to add to your eSearch 😃  The move basically allows you to move the polygon to a different location on the map and perform a search in the new location.  And the modify allows you to modify the polygon to a new shape without having to redraw the entire pology.) 

At any rate, I looked at Africa and did not find the points either.  I only have 1 (editable) layer in the mxd and it does have a long/lat.  I'm attaching a screenshot and the xml file (if applicable) for your review.  Thanks.

Thanh
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Thanh,

   Your issue is that you have a simplefill (polygon) symbology specified in your layers xml even though it is a point! Either remove the symbology portion altogether or change it to the correct symbology for your layers geometry type (mapPoint).

            <symbology>
                <simplefillsymbol color="0xff0000" alpha="0.5">
                    <outline color="0xff0000" alpha="0.8" width="2"/>
                </simplefillsymbol>
            </symbology>
        </layer>
0 Kudos
ThanhThai
Emerging Contributor
Thanks, Robert.  That did it.

Another related question, if I may, when clicking on a (resulting) dot on the map, neither the Result table nor the Search Result grid highlights the corresponding record.  It works the other way around though, i.e., when a record in the Result table or Search Result grid is clicked on, the map pans to the corresponding point and displays the popup window; it would be great to have it working both ways.  Is the behavior by design, or am I missing a configuration?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Thanh,

   That is by design. I have never had anyone ask for that type of graphic to datagrid/widget interaction... This could cause issues with configured popups for that layer. I will have to look into it some more before deciding to add it to the enhancement list.
0 Kudos
ThanhThai
Emerging Contributor
Ok. Thanks for all your help thus far!
0 Kudos
RhettZufelt
MVP Notable Contributor
Thanh,

If you are searching layers that are visible in the flexviewer map, this is how I handle that.

in the eSearchWidget.xml I set this:   <popupsdisabled>true</popupsdisabled>

That way, you will not get the popup when clicking on the results table or grid, it will, however, zoom you to the clicked feature.

Then, I configure a popup in the config.xml for that layer.  that way, any time you click on the feature, you will get the popup that honors the fields/formatting in the popupconfig.xml file.

I figure since the table/grid is giving me "most" the info, I don't need it to automatically popup a window with the same info.  However, the popupconfig file lets you configure whatever info you want displayed, and only displays on click.

R_
0 Kudos
ThanhThai
Emerging Contributor
Hi R_,

That's an excellent idea.  Do you mind sharing with me your config and popupconfig xml files?

Thanks,

Thanh
0 Kudos