Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

140769
767
10-25-2010 02:13 PM
RobertScheitlin__GISP
MVP Emeritus
All Here is my next widget in the FlexViewer 2.1 series

Special thanks to Erwan Caradec for contributing to this code.

The Enhanced Search Widget extends the standard search widget with a floating data grid and a new spatial query w/buffering.

http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e
Tags (2)
0 Kudos
767 Replies
RobertScheitlin__GISP
MVP Emeritus
Philipp,

   
Noticing some odd behavior when using the select by rectangle tool.
After the initial selection is made (on a parcel layer) clicking anywhere else on the map will
create a new selection without being prompted to draw a new rectangle.

You have never been prompted in my widget.

This should work the same way as the select by polygon tool - after the initial selection if you
click elsewhere you must redraw a new polygon to create a new selection.

The rectangle tool works identically to the polygon tool...

Also, when closing the tool the selection is cleared, but the buffer remains...

I will fix this in the next release.

And...when drawing a rectangle there is a tooltip 'Press down to start and let go to finish'
that hangs around even if after you select to do a text search...

If you selected a graphical selection tool and then never draw anything on the map, you would have to hit clear on the graphical selection view to disable the currently selected draw tool.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
John,

   Changing the label of the widget should not be a problem.

Changing search to SEARCH is OK if you are using the uncompiled code and update these lines:

if(ViewerContainer.urlConfigParams.SEARCH != null){
                    callLater(queryFromURL,[ViewerContainer.urlConfigParams.SEARCH,ViewerContainer.urlConfigParams.slayer,ViewerContainer.urlConfigParams.exprnum]);
                }
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nestor,

   Sounds like you have something screwed up in your config. What spatial reference are you using in the SearchWidget.xml? is it the same as your buffer distance widgets config file?
0 Kudos
deleted-user-RjoC4IOGTpoH
Deactivated User
They both use the same spatial reference.
Looks like it was something in the config file in the spatialrelationships section.

I was using the previous config file, .6 or .10. Just copied the section from .12 over to it and it works fine.

Thanks !!

Nestor.
0 Kudos
SteveNelson
Frequent Contributor
Hi Robert
Searched the thread and looks like Joins are supported, and specifically mentions relates not supported for now back in Jan.  Just wondering if you've considered supporting relates now?  This would be very useful to enable the creation/export of a parcel mailing list.
Thanks, all the best
Steve
0 Kudos
philippschnetzer
Frequent Contributor
Philipp,

   
You have never been prompted in my widget.

Bad choice of words...what I mean is the polygon tool goes right back to the drawing state after a polygon has been created, whereas the rectangle tool makes a new selection with a single click after the first rectangle has been drawn.  They actually do not behave identically...I double checked using the code gallery link to widget and tested it using the parcels layer....


The rectangle tool works identically to the polygon tool...


I will fix this in the next release.


If you selected a graphical selection tool and then never draw anything on the map, you would have to hit clear on the graphical selection view to disable the currently selected draw tool.
Ahh, that would make sense...



Thanks, Robert!!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Phillip,

  Well I feel pretty dense here, as I still have no clue what you are talking about....
Bad choice of words...what I mean is the polygon tool goes right back  to the drawing state after a polygon has been created, whereas the  rectangle tool makes a new selection with a single click after the first  rectangle has been drawn.  They actually do not behave identically...I  double checked using the code gallery link to widget and tested it using  the parcels layer....


by drawing state are you talking about the widgets state being the results state (view) and or the graphical search state?... I just can't wrap my head around what you are trying to point out here.
0 Kudos
philippschnetzer
Frequent Contributor
Robert,

Sorry, didn't explain that well at all!  Probably easier to just see what happens in action:

http://gis.calhouncounty.org/FlexViewer2.4/index.html?config=config-eSearch.xml&search=I-64&slayer=4...

Use the graphical search polygon tool to select some parcels.  Then, right after the selection has been made, keep drawing on the map and make a new polygon...the user has the ability to draw as many polygons right after one another as they want.

Now do this using the rectangle tool.  It works fine to draw another rectangle right after the first rectangle as long as you "hold down to start and let go to finish" but if you just single click on the map it will go ahead and make a new selection without actually letting you draw a new rectangle...

Sorry for the confusion...hope this is clearer
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Philipp,

   OK I think I understand what you are talking about. I am sorry we had to go though all that for me to inform you that what you are seeing is expected... If you use the rectangle tool and do not follow the tool tip instructions and just single click than the API sees that the extents width is 0 and just buffers the point clicked by some predefined (in the API) value.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Steve,

   I have thought about doing Relates but I just don't have the time yet to invest in a major code change and enhancement like that yet.
0 Kudos