How do I add a custom map service basemap to the basemapGallery?

208
1
12-17-2021 09:58 AM
MattStayner
Occasional Contributor

Hi,

I'm using the standard basemap gallery and am getting all of the standard Esri basemaps. I want keep those, but also add a custom map service basemap that is saved on my ArcGIS Online account. How do I do that?

I see here how you can set the source for your basemap gallery. I tried that in this codepen, but it didn't see to do anything. I want to be able to specify a specific map service. How do I do that?

0 Kudos
1 Reply
AroopChakraborty1
New Contributor II

Hi Matt,

I think you can refer to this post, where solution has been shared:

https://community.esri.com/t5/arcgis-api-for-javascript-questions/adding-custom-basemap-in-basemap-g...

Regards!

Aroop

0 Kudos