吉奥WebMapServiceImageryProvider,继承WebMapServiceImageryProvider,构造函数参数与WebMapServiceImageryProvider一致。
- Author:
-
Example:
// arcgis服务(无带号)
var tilingScheme = new Cesium.GeoProjectedTilingScheme({
viewer: viewer,
resolutions: [16.933367200067735, 8.466683600033868, 4.233341800016934, 2.116670900008467,
1.0583354500042335, 0.5291677250021167, 0.26458386250105836, 0.13229193125052918],
origin: [-5123200.0, 1.00021E7],
extent: [546325.4733999966, 4640460.086300001, 553366.0957999966, 4646337.4473],
matrixWidth: 1310,
matrixHeight: 1237,
identifier: 0
});
var provider = new Cesium.GeoWebMapServiceImageryProvider({
url : 'https://192.168.100.231:6443/arcgis/services/MapService_Local/shenyang1/MapServer/WMSServer?',
parameters: {
transparent : true,
format : 'image/png',
version: '1.1.1',
},
srs: 'EPSG:4550',
layers : '0',
tilingScheme: tilingScheme,
// maximumLevel: tilingScheme.maximumLevel,
rectangle: tilingScheme.dataRectangle
});
viewer.imageryLayers.addImageryProvider(provider);
// arcgis服务(有带号)
var tilingScheme = new Cesium.GeoProjectedTilingScheme({
viewer: viewer,
resolutions: [16.933367200067735, 8.466683600033868, 4.233341800016934, 2.116670900008467,
1.0583354500042335, 0.5291677250021167, 0.26458386250105836, 0.13229193125052918],
origin: [3.58768E7, 1.00021E7],
extent: [4.15463254734E7, 4640460.086300001, 4.15533660958E7, 4646337.4473],
matrixWidth: 1310,
matrixHeight: 1237,
identifier: 0
});
var provider = new Cesium.GeoWebMapServiceImageryProvider({
url : 'https://192.168.100.231:6443/arcgis/services/MapService_Local/shenyang2/MapServer/WMSServer?',
parameters: {
transparent : true,
format : 'image/png',
version: '1.1.1',
},
srs: 'EPSG:4529',
layers : '0',
tilingScheme: tilingScheme,
// maximumLevel: tilingScheme.maximumLevel,
rectangle: tilingScheme.dataRectangle
});
viewer.imageryLayers.addImageryProvider(provider);
// globe服务(无带号)
var tilingScheme = new Cesium.GeoProjectedTilingScheme({
viewer: viewer,
globeScaleDenominators: [72223.96373402284, 36111.98186703892, 18055.99093349196, 9027.99546674598, 4513.99773337299],
origin: [-2.00375083427892E7, 2.00375083427892E7],
extent: [546325.4733999966, 4640460.086300001, 553366.0957999966, 4646337.4473],
matrixWidth: 4210,
matrixHeight: 3148,
identifier: 13
});
var provider = new Cesium.GeoWebMapServiceImageryProvider({
url : 'http://192.168.100.231:8889/sy_shp_without_daihao/wms?',
parameters: {
transparent : true,
format : 'image/png',
version: '1.1.1',
},
srs: 'EPSG:904490',
layers : 'sy_xh_123',
tilingScheme: tilingScheme,
// maximumLevel: tilingScheme.maximumLevel,
rectangle: tilingScheme.dataRectangle
});
viewer.imageryLayers.addImageryProvider(provider);
// globe服务(有带号)
var tilingScheme_wms = new Cesium.GeoProjectedTilingScheme({
viewer: viewer,
globeScaleDenominators: Cesium.GeoProjectedTilingScheme.GLOBESCALEDENOMINATORSWITHZONENUMBER, //填写该常量值
origin: [-2.00375083427892E7, 2.00375083427892E7], //服务元信息中读取
extent: [4.05576447265E7, 3068742.1494, 4.05717277561E7, 3083983.0301], //服务元信息中读取
});
var wmsProvider = new Cesium.GeoWebMapServiceImageryProvider({
url: 'http://192.168.101.105:9010/XZDC_TDDC_DLTB_2018/wms',
parameters: {
transparent : true,
format : 'image/png',
version: '1.1.1',
},
srs: 'EPSG:4528',
layers : 'XZDC_TDDC_DLTB_2018',
tilingScheme: tilingScheme_wms,
maximumLevel: tilingScheme_wms.maximumLevel,
rectangle: tilingScheme_wms.dataRectangle
});
viewer.imageryLayers.addImageryProvider(wmsProvider);