openwisp / openwisp/netjsongraph.js

[bug] Leaflet plugins: measure distance and area is broken

Open
#499 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

  1. open http://localhost:8080/examples/netjsonmap-plugins.html
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.