Hello. How can I track the appearance of the vertex of a broken line when editing (or drawing) above (or below) another map object, for example, a previously set mark? Or catch the event of the end of dragging the vertex of the polyline over the label?

I tried to track the events of mouseenter and mouseleave, but it does not work. Everything works, of course, on already drawn objects, but in the process of drawing it is not.

Another question - why the labels on the map always obscure broken lines? Can this be changed?

    1 answer 1

    The geometry editor has its own set of events available. They are described in the documentation. You can track the end of dragging a vertex through the vertexdragend event and then determine if the vertex has fallen under another object.