openwisp / openwisp/netjsongraph.js
[bug] Leaflet plugins: measure distance and area is broken
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 314
- Forks
- 119
- Avg merge
- 18h 17m
- Merged PRs (30d)
- 15
Description
Describe the bug
The "measure distance and area" is broken, clicking on points moves the map, looks very quirky.
Related to #492.
Screencast
https://github.com/user-attachments/assets/502ca898-3a3a-4d47-9e52-ea9850122d8d
Steps To Reproduce
Steps to reproduce the behavior:
- open
http://localhost:8080/examples/netjsonmap-plugins.html - try using the measure area plugin
Expected behavior
Measuring should work without quirks.
We should write a basic browser test for ensuring leaflet plugins are working fine.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue at examples/netjsonmap-plugins.html, focusing on the measure area plugin and the map movement shown in the report. Read the context of related issue #492 and identify the existing browser-test setup; done means measuring distance and area works without map movement or other quirks, with a basic browser test covering the plugin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100