egalvezgeodata-com-ph-esridist

HELP! JAVASCRIPT API: Switch Basemap

Discussion created by egalvezgeodata-com-ph-esridist Employee on Nov 20, 2013
Latest reply on Nov 22, 2013 by jeff.pace
How to switch basemap layer to our locally generated basemap layer with different tiling scheme/scale from Esri Basemap Gallery because either our basemap is not displaying or Esri default basemaps are not displaying?

Scenario:
I have customized the Basemap Gallery to create a different list/options. One from our locally generated basemap layer and two from Esri Base map default gallery. Our locally generated map was cached with different tiling scheme/scale (eg: 1:2500, 1:5000) from the default Esri basemaps (eg: 1:1128.497176, 1:2256.994353).

I have checked the ArcGIS Online and other open source api, they are switching even they have different tiling scheme/scale.

Aside from the tiling scheme, our basemap have the same attributes/details with the Esri Basemap Gallery.

Spatial Reference: 102100 (3857)
Single Fused Map Cache: true
Height: 256
Width: 256
DPI: 96
Format: JPEG
Compression Quality: 75
Origin:
X: -20037508.342787
Y: 20037508.342787
Spatial Reference: 102100 (3857)

I already tried using WMSLayer,WMSLayerInfo, TilingInfo but no luck on switching them. :(

How do i do that, the switching from our basemap to the Esri default basemaps with JavaScript API? Sample code for creating or coding will be highly appreciated.

THANK YOU IN ADVANCE!

Outcomes