当绑定到此层的弹出窗口关闭时激发 Tooltip events inherited fromLayer 从层继承的工具提示事件 EventDataDescription tooltipopenTooltipEventFired when a tooltip bound to this layer is opened. 当绑定到此层的工具提示打开时激发。 tooltipcloseTooltipEventFired when a tooltip bound to this layer is closed. 当...
好了,在阅读了this之后,我设法为react-leaflet实现了一些类似的东西。目前它只使用leaflet的Canvas_...
ToolTip tt = new ToolTip(); tt.Content = ToolTipText; result.ToolTip = tt; } return result; } public override void SetPosition(UIElement marker, Point screenPoint) { Canvas.SetLeft(marker, screenPoint.X - Size / 2); Canvas.SetTop(marker, screenPoint.Y - Size / 2); ...