AnsweredAssumed Answered

May I add different spatialReference in one map in arcgis js 4?

Question asked by tms2003 on Jun 20, 2017

Dr sir:

I want add two spatialReference webtilelayer in one map.My code like this:

 

 

//add makrker layer
var baseMapMarker = new WebTileLayer("http://{subDomain}.tianditu.com/DataServer?T=cva_c&X={col}&Y={row}&L={level}", {
"copyright": "Tianditu",
"id": "Tianditu2",
"subDomains": ["t0", "t1", "t2"],
"tileInfo": tileInfo,
"spatialReference": {
"wkid": 4326
}
});

 


var map = new Map({
basemap: "satellite",//satellite,"hybrid"
// ground: "world-elevation"
});

 


map.layers.add(baseMapMarker, 3);//add layer now

 

but it not work except use one spatialReference,I notice this layer can support spatialReference,so I think maybe it could work, Could u help me?

 

 

 

May I add different spatialReference in one map in arcgis js 4?

Outcomes