tonylife

Switch basemap with different wkid in basemap gallery

Discussion created by tonylife on Dec 2, 2013
Latest reply on Jan 10, 2014 by patel1684
Our customer wants to use their own basemap, which has different wkid with esri's default wkid.

To createmap, API allows to pass following valid options: "streets" , "satellite" , "hybrid", "topo", "gray", "oceans", "national-geographic", "osm" to the parameter "basemap", according to API reference.

What I am doing is, temperately use "topo" as basemap when creating map, then use BasemapGallery.select(id) to switch to customer's basemap. However, since customer's basemap and esri's topo basemap wkid are different, I am hitting error Map: Geometry (wkid: 102100) cannot be converted to spatial reference of the map (wkid: 3417) .

Is there a anyway to workaround?

Thanks for your help!
Tony

Outcomes