This sample demonstrates how to add a BasemapGallery widget instance to the Expand widget. The Expand widget is helpful for hiding UI elements that otherwise block portions of the view. Click the icon representing the BasemapGallery to view the content inside the Expand widget (in this case the BasemapGallery widget). You can collapse the content by clicking the collapse icon.
When creating an Expand widget instance, you must set the view
referenced by the widget and the content
to a DOM node. The content in this sample is the DOM node containing the BasemapGallery widget instance.
var basemapGallery = new BasemapGallery({
view: view,
container: document.createElement("div")
});
var bgExpand = new Expand({
view: view,
content: basemapGallery.domNode,
expandIconClass: "esri-icon-basemap"
});
view.ui.add(bgExpand, "top-right");
There were no match results from your search criteria.