bopen / leaflet-area-selection

Create and manipulate a polygonal area on a Leaflet map
https://bopen.github.io/leaflet-area-selection/
MIT License
36 stars 14 forks source link

Old school usage example is borked #21

Closed Joshua2504 closed 7 months ago

Joshua2504 commented 8 months ago

Hey,

the Old School Usage example linked in the README seems to use an old Version and is not working.

Could you update it?

keul commented 8 months ago

Done (but this is still tested with old version leaflet… there are never fixed issues with most recent ones)

Joshua2504 commented 8 months ago

Hey, thank you for the quick reply :)

I just copied the code, but still the coordinates of the selected area are not being shown below the map.

keul commented 7 months ago

@Joshua2504 OK now I got it. The old school example is not complete as the live example you can find at https://bopen.github.io/leaflet-area-selection/ It just show how you can integrate the plugin in the leaflet hello world example.

I can improve, but is just a matter of configuring it adding what you can find from this line on: https://github.com/bopen/leaflet-area-selection/blob/dabc22fd8c57b9eebf27bbc642ea3cff51128e58/example/src/index.js#L43