Skip to content
#

leaflet

Here are 2,502 public repositories matching this topic...

arduino-man
arduino-man commented Mar 27, 2021
  • [✔️] I've looked at the documentation to make sure the behavior is documented and expected
  • [✔️] I'm sure this is a Leaflet code issue, not an issue with my own code nor with the framework I'm using (Cordova, Ionic, Angular, React…)
  • [✔️] I've searched through the issues to make sure it's not yet reported

Steps to reproduce
Steps to reproduce

leaflet-geoman
Falke-Design
Falke-Design commented Oct 19, 2021

In the event payload the return type of layer is `L.Layer? so it needs to be casted to the Layer-Type.

layer.on('pm:edit', (e) => {
  if(e.shape === 'Polygon'){
     (e.layer as Polygon).getLatLngs();
  }
});

This should documented in the Readme

Explainations:

Improve this page

Add a description, image, and links to the leaflet topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the leaflet topic, visit your repo's landing page and select "manage topics."

Learn more