首页 / 浏览问题 / WebGIS / 问题详情
超图FAQ:【iClient】OpenLayers如何以image方式加载地图服务?
44,106EXP 2024年03月14日
【iClient】OpenLayers如何以image方式加载地图服务?

1个回答

【解决方法】在OpenLayers中可以使用ImageSuperMapRest类来加载地图服务,使用该类加载,地图是以image方式出图;但需要注意这种方式出图在效率上会比以tileImage方式出图差一些。示例代码参考: var layer = new ol.layer.Image({ source: new ol.source.ImageSuperMapRest(ol.source.ImageSuperMapRest.optionsFromMapJSON(url, mapObj, true)) }); map.addLayer(layer);
44,106EXP 2024年03月14日
热门文章
关注我们
...