Select to view content in your preferred language

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

574
0
06-20-2017 02:31 AM
tangms
by
New Contributor II

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?

0 Kudos
0 Replies