产品 iserver 10i
操作系统 win7 x64
proj4.defs("EPSG:4490","+proj=longlat +ellps=GRS80 +no_defs");
ol.proj.proj4 && ol.proj.proj4.register(proj4);
var projection1 = ol.proj.get('EPSG:4490');
var map, url ="http://localhost:8090/iserver/services/map-4490/rest/maps/New_Region@test";
map = new ol.Map({
target: 'map',
controls: ol.control.defaults({attributionOptions: {collapsed: false}})
.extend([new ol.supermap.control.Logo()]),
view: new ol.View({
center: [-21.13 , 21.63 ],
zoom: 2,
projection: "EPSG:4490",
multiWorld: true,
})
});
var layer = new ol.layer.Tile({
source: new ol.source.TileSuperMapRest({
url: url,
wrapX: true
}),
projection: "EPSG:4490",
});
map.addLayer(layer);
map.addControl(new ol.supermap.control.ScaleLine());
问题:发布的矢量rest地图不显示 ,报错如下