收藏
回答

请问MapContext.addGroundOverlay创建的自定义图层怎么遮住地图poi?

this.mapCtx.addGroundOverlay({

      id10086,

      src'/image/map.png',

      bounds: {

        southwest: { //西南角经纬度

          latitude22.57752841911238,

          longitude114.04844556792409

        },

        northeast: { //东北角经纬度

          latitude22.81703829138907,

          longitude114.36735410533367

        }

      },

      successres => {

        console.log(res"图层创建成功");

      },

      failerr => {

        console.log(err"图层创建错误");

      }


回答关注问题邀请回答
收藏

1 个回答

  • 茜茜又困了🐽
    茜茜又困了🐽
    2022-08-09

    z-index起作用吗?没用的话,设置opacity为不透明试试?

    2022-08-09
    有用 1
    回复
登录 后发表内容