openlayers 异步加载地图切片渲染错误, chromium浏览器能正常显示

flythink 2月前 131

BaiduTile.prototype.load_tile = function (image, src) {
  
    axios.get(src, {responseType:'blob'}).then(function (resp) {
      var urlCreator = window.URL || window.webkitURL;

      var img = image.getImage();
      img.onload = function(e) {
          urlCreator.revokeObjectURL(img.src); // Clean up after yourself.
      };

      img.src = urlCreator.createObjectURL(resp.data);
    })
  }


上传的附件:
最新回复 (0)
返回
发新帖