Nearby app: Map container size and Clear Search Results button

278
5
08-26-2021 09:42 AM
NataliyaLys
Occasional Contributor II

I was wondering if there is any way to resize the 'map container' in the NearBy app, so there is no blank white space on the right (see attached)?

Also, every time I want to do a new search I have to click on the 'Clear Search Result' button. Is there a way to by pass this, and/or hide the button. And instead have a new search initiated right away from a map click? (This was a functionality in a legacy 'Information lookup' template).

Thank you,

Nataliya

0 Kudos
5 Replies
KellyHutchins
Esri Frequent Contributor

The whitespace to the right shouldn't be there. Looks like there could be a potential bug. Is your app public? If so can you share the link? 

 

It is required to clear the search each time. While in "search mode" you can interact with the map to view info about the selected features so we require that you clear out the selection before performing another search. 

0 Kudos
NataliyaLys
Occasional Contributor II

@KellyHutchins It appears that the 'white space' would only show on a bigger desktop monitor. I tried the app on a laptop and didn't get the 'white space' on the right. 

Here is a link to my app: https://omaha.maps.arcgis.com/apps/instant/nearby/index.html?appid=069f919b138e46989daf8b1743b87df9

Thank you,

0 Kudos
KellyHutchins
Esri Frequent Contributor

Can you try adding the following to the custom css configuration option? 

 

 

.grid-container,
.column-14,
.column-12,
.column-10,
.column-18,
.column-16,
.column-6 {
  height: 100%;
  width: 100%;
}
0 Kudos
NataliyaLys
Occasional Contributor II

Thanks @KellyHutchins, that worked.

0 Kudos
NataliyaLys
Occasional Contributor II

@KellyHutchins regarding the 'Clear Search Results' button, I understand your point that while in the 'search mode' I can click on individual layers in result list and see them highlighted on the map, etc. But in my specific case, I don't really need an ability to interact with returned features, I just want to see results and that's it. And then, when I click on the map I just want the current  results to be cleared and new results displayed.

I was thinking that maybe it would be useful to have an option in the app configuration to allow users to interact/select layers in result list, but it's probably not that simple. 

If you have any suggestions/ideas about this  I would like to hear it. 

Thank you,

Nataliya

 

0 Kudos