您好,查看了动态标绘的api,右键事件是movingTargetLayer才有的,大致思路就是设置一个div 先隐藏,然后通过点击的点设置该div的top和left,下面代码供参考
plottingLayer.on("featurecontextmenu", function (event) {
var contentMe = document.getElementById("contentMe");
contentMe.style.top = event.originalEvent.clientY + "px";
contentMe.style.left = event.originalEvent.clientX + "px";
contentMe.style.display = "block";
})