arcgis for js文本标注背景设置

arcgis for js文本标注背景设置

 

 在样式上添加:.dijitTooltipContainer {
    background-color: #ffffff !important;
    border-radius: 5px !important;
    border-width: 1px !important;
    box-shadow: 0 0 0.75em #777777 !important;
    padding: 0 !important;
}

JS添加:

dojo.connect(landLayer, "onMouseOver", function (e) {

        var graphic = e.graphic;
        map.setMapCursor("pointer");
        dialog.setContent(graphic.attributes.topinfo);
        domStyle.set(dialog.domNode, "opacity", 0.85);
        dijitPopup.open({
            popup: dialog,
            x: e.pageX,
            y: e.pageY
        });
    });

你可能感兴趣的:(JS,ARCGIS)