标签:
//加载ArcGIS 发布的地图服务MapServer
var url=‘http://Jason:6080/arcgis/rest/services/SampleWorldCities/MapServer‘;
var viewer = new Cesium.Viewer(‘cesiumContainer‘,{
imageryProvider:new Cesium.ArcGisMapServerImageryProvider({
url : url,
layers: ‘1,2‘,
enablePickFeatures:true
}),
baseLayerPicker:false
});
var layers = viewer.imageryLayers;
//加载下载的地图切片,url不需要写IP
var blackMarble = layers.addImageryProvider(Cesium.createTileMapServiceImageryProvider({
url : ‘/GoogleRSMap_Global_6/‘,
credit : ‘GoogleRSMap_Global‘
}));
//加载下载的地图切片,url不需要写IP
layers.addImageryProvider(Cesium.createTileMapServiceImageryProvider({
url : ‘/Terrain/Street_SX_瓦片:TMS/‘,
credit : ‘Street_SX‘
}));
标签:
原文地址:http://www.cnblogs.com/defineconst/p/5979217.html