iserver 10i 下面是加载后得结果左边带中国地图一半的貌似是对的右边这半截好像不对 大哥们这啥问题呀
var map = new ol.Map({
target: 'map',
view: new ol.View({
// projection: 'EPSG:4326',//投影类别
// center: ([120, 30]),
center: ol.proj.transform([120, 30], 'EPSG:4326', 'EPSG:3857'),
zoom: 12,
// multiWorld: true
}),
layers: [
]
});
function addArcgisLayer1() {
arcGISSource = new ol.source.XYZ({
url: 'http://localhost:8090/iserver/services/map-china400/arcgisrest/China/MapServer/tile/{x}/{y}/{z}'
});
arcGISLayers = new ol.layer.Tile({
opacity: 0.5,
source: arcGISSource,
extent: [-2.0037508342789248E7, -2.003750834278914E7, 2.0037508342789244E7, 2.0037508342789087E7]
});
map.addLayer(arcGISLayers); //添加瓦片地图图层
}
addArcgisLayer1()