There's actually an easier way to do this with JavaScript. I recommend not overriding it with CSS as this can cause some issues when upgrading to future versions.
The popup has a dockOptions property which has an option to disable this button: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions
Simply do the following:
view.popup.dockOptions.buttonEnabled = false;
Or
var view = new MapView({ container: "viewDiv", map: map, center: [-73.950, 40.702], zoom: 11, popup: { dockOptions: { buttonEnabled: false } } });
When constructing your view.
Justin,
Just add some css to remove that from the popup
.esriPopup .titleButton.maximize {
display: none;
}
There's actually an easier way to do this with JavaScript. I recommend not overriding it with CSS as this can cause some issues when upgrading to future versions.
The popup has a dockOptions property which has an option to disable this button: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions
Simply do the following:
view.popup.dockOptions.buttonEnabled = false;
Or
var view = new MapView({ container: "viewDiv", map: map, center: [-73.950, 40.702], zoom: 11, popup: { dockOptions: { buttonEnabled: false } } });
When constructing your view.