Skip to content

bindContextMenu and relatedTarget #142

@SellingSystems

Description

@SellingSystems

Hi, I have bound a menu to layers in a geoJSON onEachFeature but the related target comes back as undefined:

layer.bindContextMenu({
		contextmenu: true,
		contextmenuInheritItems: false,
		contextmenuItems: [{
				text: "Edit",
				callback: function(e) {
					console.log(e.relatedTarget)
				}
			}
		]

})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions