添加图片

var imgstatic = new ol.source.ImageStatic({
url: _url,
projection: 'EPSG:3857',
crossOrigin: '',
imageExtent: ol.proj.transformExtent([_scope[0], _scope[3], _scope[2], _scope[1]], 'EPSG:4326', 'EPSG:3857')
})
var radarLayer = new ol.layer.Image({
source: imgstatic,
imgdatatype: _id,
id: _id
})

_map.addLayer(radarLayer);
posted @ 2022-07-15 00:11  小林222  阅读(90)  评论(0)    收藏  举报