Skip to content

pm:intersect issue #1332

Closed
Closed
@dvazquez-lightbox

Description

@dvazquez-lightbox

hey Everyone, after looking through the docs, I wanted the ability to log when an intersection occurs. im able to log other events outside of the pm:intersect. Is this the correct way of calling it the intersect event when drawing a shape?

.on('pm:drawstart', ({ workingLayer } ) => {
         workingLayer.on('pm:vertexadded', (layer) => {
             console.log("vertex added is logged");
         });
         workingLayer.on('pm:intersect', (layer) => {
            console.log("intersect is not logged");
         });
      });

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedIssues that are fixed in develop or in a PRimprovement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions