Is there an option to turn it off? Would I have to make my own popup class?
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;
}
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.