Select to view content in your preferred language

Remove "Zoom-To" Action Button from Default Popup

3020
4
07-16-2024 10:44 AM
Status: Open
Labels (1)
KeonMonroe
Occasional Contributor

Reviewing this question, it appears the default "Zoom To" button which is visible in all default popups can be removed via CSS or Javascript. Could this same functionality be made available in ArcGIS Online somehow?

Otherwise when using the map in an Experience Builder app in ArcGIS Online, this button will always appear by default even if it is undesired. I've tried all configuration options available on the map widget component, and spoke to an ESRI technician who confirmed there was no way to disable this by default - hence the request.

We are attempting to ensure all text within these popups does not produce a scrollbar - and the Zoom To button takes up valuable space (and again, is completely undesired).

Thank you.

KeonMonroe_0-1721151620927.png

 

4 Comments
DavidHedges1

Hi @KeonMonroe  -  I'm having the same issue. I'd love to know how you removed "Table" and "Get Directions" default from your pop-up,  I can live with the "Zoom-To" function at the moment, but can't figure out how to remove the other defaults.

Screenshot 2024-08-23 112821.png

Thanks

AmericanWater

@DavidHedges1 - Unfortunately it seems these actions are included by default in the popup when opened in Map Viewer (in both the new and classic versions). The screenshot I provided was from Experience Builder, where you are allowed some customization and options to remove the Table and Directions - although not "Zoom To" (hence this question). 

Perhaps another related request is to have some way to disable these popup options in Map Viewer directly. If the implementation somehow took the popup configurations from the item and applied them downstream to say Experience Builder - both these issues could be resolved and offer the users greater customization options on the popups.

weiliyao
 this.view = new MapView({
      container: 'mapViewDiv',
      map: this.map,
      center: [116.4, 39.9],
      zoom: 4,
      popup: {
        dockEnabled: true,
        dockOptions: {
          position: "bottom-right"
        },
        viewModel:{
          includeDefaultActions:false
        }
      }
    });


set 
viewModel:{
          includeDefaultActions:false
        }


AZendel

Yes, please! Esri, I'd like to remove the entire action toolbar from both the 'new' map viewer and inside Experience Builder (EB). There are use cases where these tools are probably very helpful and I think it makes sense to enable them by default. But I need to maximize 'screen real estate' in my EB that will be displayed on desktop and mobile browsers. I would love to get rid of all of the dead space highlighted in green below, which is an EB popup. But I have a feeling that this is tied to the web map and not EB.

AZendel_0-1767979370565.png

I did try the "Feature Info" widget in EB. And I could remove all of the tools. But:

1) The toolbar is still present. As is the actions 'menu' even through there are no tools. I'd like to get rid of the entire toolbar.

AZendel_1-1767982521657.png

 

2) On larger screens, I want the popup functionality that has a callout pointer that points at the feature that was clicked. 

3) I don't want the Feature Window (or a popup) to be displayed at all times. It should only show when the user taps a feature in a specified feature layer. There may be a way to configure the Feature Info to hide when it's not needed, but I'm not seeing it.

In short, ESRI, please add a setting that removes the toolbar from the popup and Feature Info window. This could be a checkbox in the map viewer that reads "Hide toolbar"