iobis / iobis/mapper

find solution for old zoom level in latLngToLayerPoint

Open
#78 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently this forces me to add points after a 400 ms delay (zooming).

Check these:

Also, it should be possible to use zoom from coords.

console.log(coords)
console.log(res.coordinates[i])
console.log(self._map.project(L.latLng(res.coordinates[i][1], res.coordinates[i][0]), coords.z))

Contributor guide

No contributing guide indexed for this repository

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 delayed point-adding behavior during zooming, then inspect the latLngToLayerPoint call and the coords object described in the issue. Compare the returned coordinates with map.project at coords.z and use the linked examples and GIS discussion to define the expected zoom behavior; done means points can be added without the 400 ms delay and the intended zoom is respected.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.