我有一个本地ArcGIS服务器9.3.1。 我启用了WMS和缓存(平铺)。 我想使用OpenLayers显示切片,因为ArcMap无法打开自己的REST服务;(
使用OpenLayers这很有效,除了瓷砖质量不好。 航拍照片基础层(jpeg)非常像素化,叠加也很糟糕,png8。
当我查看服务器上的平铺文件夹时,我看到图像没问题,所以当OpenLayers打开它们时会出现问题。
这是我的代码:
var mapOptions = {
projection: new OpenLayers.Projection('EPSG:28992'),
resolutions: [3440.64, 1720.32, 860.16, 430.08, 215.04, 107.52, 53.76, 26.88, 13.44, 6.72, 3.36, 1.68, 0.84, 0.42, 0.21, 0.105, 0.0525],
div: "map",
maxExtent: new OpenLayers.Bounds(634.5732789819,306592.8911594,1762242.253279,2068200.5711594),
units: "m",
numZoomLevels: 17,
tileSize: new OpenLayers.Size(512,512),
controls: []};
var map = new OpenLayers.Map('map', mapOptions);
var aerial= new OpenLayers.Layer.ArcGIS93Rest("aerial",
"http://myServer/arcgis/rest/services/myMap/MapServer/export",
{layers: "show:0",
type: "jpg",
useScales: true,
useAGS: true,
transparent: false
},
{ tileSize: new OpenLayers.Size(512,512),
buffer: 2,
visibility: false,
isBaseLayer: true,
transitionEffect: 'resize'
}
);
var tiled = new OpenLayers.Layer.ArcGIS93Rest(Tiled",
"http://myServer/arcgis/rest/services/MyMap/MapServer/export",
{layers: "show:56",
type: "png8",
useScales: true,
useAGS: true,
transparent: true
},
{ tileSize: new OpenLayers.Size(512,512),
buffer: 0,
visibility: false,
isBaseLayer: false,
transitionEffect: 'resize'
}
);
边界和分辨率来自图层。 有人建议如何在OpenLayers中从ArcGIS显示平铺的WMS图层吗?
感谢。