Select to view content in your preferred language

singleLineSearch in 3.2

1978
5
Jump to solution
03-26-2013 06:54 PM
RhettZufelt
MVP Notable Contributor
Was wondering where the singleLineSearch.mxml code is being called from in version 3.2?

I would like to disable the popups for search results, but noticed that the singleLineSearch is no more?

R_
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Rhett,

  I was talking with Heather from the API team and she reminded me that the viewer is handling the adding of the poupup in its code. So in src/com/esri/viewer/components/GeocoderComponent.mxml in the showSearchResultOnMap function you will find the code where the popup is called just do your commenting out in there to get what you are after.

View solution in original post

0 Kudos
5 Replies
BjornSvensson
Esri Alum
The "SingleLineSearch.mxml" is not being called from anywhere, and it's no longer part of the source code.

In version 3.2, the old singlelinesearch was replaced with the "Geocoder"  API component:
https://github.com/Esri/arcgis-viewer-flex/issues/51

Not sure what you mean with "disable the popups for search results"...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,

   That is because it is using the Geocoder API Component now.

http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/Geocoder.html
0 Kudos
RhettZufelt
MVP Notable Contributor
Well, in the last version, it was possible to disable the infowindow that pops up when you select a search result.

If I use the singlelinesearch box, do a search and get a result, it will highlight the result graphic, zoom to it, and display a basic infowindow:
[ATTACH=CONFIG]22992[/ATTACH][ATTACH=CONFIG]22995[/ATTACH]

As far as I can tell, I can't customize this popup, AND, I already have an extensive popup configured for that layer.  Would be nice if the searched layer would honor the popupconfig for that sub-layer, but since it doesn't, I just disable it so that it selects, highlights, and zooms to it.  If the user then clicks on it, they get the info they want (from my pre-configured popupconfig), not just the basic ID of the feature, PLUS, the way it is now, I have to click on the "next" arrow in order to see the configured popup (plus, it makes it look like you have two features identified (1 of 2), when really there are two popups for a single feature.

[ATTACH=CONFIG]22994[/ATTACH]

Hope this make sense,

R_

BTW, the X (clear button) is a great addition.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,

  I was talking with Heather from the API team and she reminded me that the viewer is handling the adding of the poupup in its code. So in src/com/esri/viewer/components/GeocoderComponent.mxml in the showSearchResultOnMap function you will find the code where the popup is called just do your commenting out in there to get what you are after.
0 Kudos
RhettZufelt
MVP Notable Contributor
Thanks Robert (and Heather),

That did the trick.  First, I just commented out the infoWindowShow call and it no longer popped up on me on search result.

However, if I clicked on the search result, it would still come up with the "limited" popup, then my configured one when you hit the next button.

So, I just commented out the section that constructs the popUpInfo and infoWindowRenderer and all is well.

Much more professional looking map now...

Thanks again,

R_