ArcGIS API forJavaScript4.x去除地图获取焦点的黑色边框
ArcGIS API forJavaScript4.x去除地图获取焦点的黑色边框

CSS
/* 去掉地图聚焦边框 */
.esri-view-surface--inset-outline:focus::after {
outline: none !important;
}
如果上面的css不能起效果,那就加个::v-deep()就可以了
// 去掉地图聚焦边框
::v-deep(.esri-view-surface--inset-outline:focus::after) {
outline: none !important;
}
2024.03.25
前面测的是4.22版本,今天使用4.29版本发现不行了,改用了以下代码
/* 去掉地图聚焦边框 */
:deep(.esri-view-surface--touch-none::after) {
outline: none !important;
}

浙公网安备 33010602011771号