303Arcgis_for_js去掉边框和标志4.21(03)

Arcgisapi for js去掉地图边框和下面esri标志

1.去掉地图边框。默认ui在点击地图后会有一个边框显示出来,且之后会一直存在。
去掉方法是加上样式:

.esri-popup__inline-actions-container {
  display: none;
}
.esri-view .esri-view-surface--inset-outline:focus::after {
  outline: none;
}

2.去掉地图下方自带的esri官方的标志:

    const map = new Map({
      basemap: "osm",
    });
    const view = new MapView({
      container: "mapView",
      map: map,
      zoom:5,
      center:[106.33,29.35]
    });
    view.ui.remove('attribution')//这一句用于去除地图下方自带的esri官方的标志

你可能感兴趣的:(303Arcgis_for_js去掉边框和标志4.21(03))