Select to view content in your preferred language

Simple Basemap Button? (4.x)

689
1
Jump to solution
11-23-2021 02:44 PM
DaleBecker
New Contributor

It seems like the Basemap Gallery should have a property that allows you to show the small button that is the default when using AGOL app builders (older example) but I cannot figure out how to do so.

For Example, This Pen shows the gallery but it is large, I want it collapsed to a button that once clicks expands.

This community post as shown in this pen shows a solution that seems overly complicated and provides extra styling that I do not need.

 

Is there a way to have the small button in community post with the default esri styling by simply changing gallery settings?

 

0 Kudos
1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor

To have a button that expands once clicked to show the BaseMapGallery widget, you can use the Expand widget (as the small button), which then expands to displays the BasemapGallery widget. See https://codepen.io/bsvensson/pen/GRvbyaM 

View solution in original post

1 Reply
BjornSvensson
Esri Regular Contributor

To have a button that expands once clicked to show the BaseMapGallery widget, you can use the Expand widget (as the small button), which then expands to displays the BasemapGallery widget. See https://codepen.io/bsvensson/pen/GRvbyaM