When you try to close a polygon in drawing mode, when you hover over the first point, a pointer is triggered, but when you click on a point, hit on the marker does not occur in all parts of the icon. Does it depend on the iconAnchor parameter? How to set it up correctly?
//параметры вершины фигуры var optionCircle = { iconSize: new L.Point(12, 12), iconAnchor: new L.Point(0, 0), style: { 'width': 12px; 'height': 12px; } }; //курсор cursorIcon = L.divIcon({ iconSize: [40, 40], iconAnchor: [20, 20] )}; optionsDrawIcon = { style: { width: '8px', height: '8px', iconAnchor: [6, 6] } };