# how to change basemap, don't use baselayerpicker

**URL:** <https://community.cesium.com/t/how-to-change-basemap-dont-use-baselayerpicker/5864>\
**Category:** CesiumJS\
**Created:** [July 27, 2017, 6:40am UTC](https://community.cesium.com/t/how-to-change-basemap-dont-use-baselayerpicker/5864 "2017-07-27T06:40:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arc\_z](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@arc\_z](https://community.cesium.com/u/arc_z)\
**Post date:** [July 27, 2017, 6:40am UTC](https://community.cesium.com/t/how-to-change-basemap-dont-use-baselayerpicker/5864/1 "2017-07-27T06:40:53Z")

</div>

Hi all.

I want to change the basemap after initialization, and don’t use the default baselayerpicker.

1. var imgp1 = new Cesium.ArcGisMapServerImageryProvider( {
2. 

```
url : 'http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer'  

```

3. });
4. var imgp2 = new Cesium.TileMapServiceImageryProvider( {
5. 

```
url : '//cesiumjs.org/tilesets/imagery/blackmarble'

```

6. });
7. 
8. var viewer = new Cesium.Viewer( ‘cesiumContainer’, {
9. 

```
imageryProvider : imgp1,

```

10. 

```
baseLayerPicker : false  

```

11. });

how to switch them by myself baselayer control.

thanks.

---

<div class="post-metadata">

**Author:** ![Rachel\_Hwang](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Rachel\_Hwang](https://community.cesium.com/u/Rachel_Hwang)\
**Post date:** [July 27, 2017, 3:10pm UTC](https://community.cesium.com/t/how-to-change-basemap-dont-use-baselayerpicker/5864/2 "2017-07-27T15:10:50Z")

</div>

Hi there,

This sandcastle example has the code you need: [http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Imagery%20Layers%20Manipulation.html&label=Showcases](http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Imagery%20Layers%20Manipulation.html&label=Showcases)

Hope that helps!

- Rachel

---

<div class="post-metadata">

**Author:** ![arc\_z](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@arc\_z](https://community.cesium.com/u/arc_z)\
**Post date:** [July 29, 2017, 2:32pm UTC](https://community.cesium.com/t/how-to-change-basemap-dont-use-baselayerpicker/5864/3 "2017-07-29T14:32:58Z")

</div>

thank you , Rachel

在 2017年7月27日星期四 UTC+8下午11:10:50，Rachel Hwang写道：
