[GIS] How to Change the Default Displaying Order of Esri Basemaps in basemapGallery

arcgis-javascript-apiarcgis-online-basemapsdisplayorder

I just started using ArcGIS JS APIs. In my app, I want to combine a few ESRI basemaps with my own basemap service. I am using basemapGallery dijit to change basemaps. By default, basemapGallery shows the imagery map. I want to show OpenStreetMap as the default. How can I make this happen?

The code in my app is simple and directly borrowed from ArcGIS samples. So I did not put it here.

Thanks!

Best Answer

I think that you'll be best served to create a manual list of the basemaps, including the order, that you want displayed within the gallery.

This ArcGIS thread gives quite a bit of detail into what you might be looking for and some code in how to do it.