Select to view content in your preferred language

Disable the "Use current location" in the search bar - Zone Lookup

123
2
Jump to solution
a month ago
RossFindlayCOC
Regular Contributor

In January I updated a Zone Lookup app with some custom CSS to hide the "Use current location", because we were using it for a by-election and the current location was irrelevant, only the persons residence was a valid place to search for.

 .esri-search__suggestions-list--current-location{display: none;}

The February 2025 update seemingly messed up a whole host of custom CSS that I configured but most notably this element doesn't seem to exist anymore and now I am unable to hide this from view, because the only thing available is the the entire suggestions listing, which I want to keep.

We have more elections this year and I am wondering if there is a way to replicate this with the current system or if this can be re-considered by your team and potentially implemented before October.

Ross Findlay

The City of Calgary

0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor

We can add an option that allows you to configure the app to disable the location option in a future release. In the meantime try this custom css that gets that item by looking for the gps icon. 

 

calcite-autocomplete-item[icon-start="gps-on"]{
display:none;
}

View solution in original post

0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor

We can add an option that allows you to configure the app to disable the location option in a future release. In the meantime try this custom css that gets that item by looking for the gps icon. 

 

calcite-autocomplete-item[icon-start="gps-on"]{
display:none;
}
0 Kudos
RossFindlayCOC
Regular Contributor

Thanks for your consideration. This worked great. You're the best Kelly!

0 Kudos