更新时间:2023-01-02 18:49:26
我遇到了同样的问题,即多个图钉靠在一起,并且当我单击图钉时有其他内容可以显示时,该问题更加严重.
I had the same problem where I had multiple pushpins close together and the problem was exacerbated when I had additional content to show when the pushpin was clicked.
我解决此问题的方法是删除图钉,然后重新添加它.这样,它就成为了最高的图钉.
The way I got around this problem was to remove the pushpin and then re-add it. That way it became the topmost pushpin.
map1.Children.Remove(pushpin);
map1.Children.Add(pushpin);