Select to view content in your preferred language

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

475
1
12-17-2021 09:58 AM
MattStayner
Frequent 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
Occasional Contributor

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