openlayers6 显示mapserver影像

let mapfile = row.dmImageOverview +"//" + row.dmImageId +".map";

let url =this.global.MAPSERVER_PATH;

let wmsParam = {

map: mapfile,

    LAYERS: row.dmImageId,

    transparent:true

};

let routeLayer =new this.TileLayer({

name: row.dmImageId,

    source:new this.TileWMS({

url: url,

        //crossOrigin: 'anonymous',

        params: wmsParam,

        serverType:'mapserver'    //服务器类型

    }),

    zIndex:this.getAllLayers().length +1

});

this.map.addLayer(routeLayer);

你可能感兴趣的:(openlayers6 显示mapserver影像)