Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.