Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag'n'drop zooms out to infinity (and beyond?) #1175

Open
mbredif opened this issue Jul 4, 2019 · 2 comments
Open

Drag'n'drop zooms out to infinity (and beyond?) #1175

mbredif opened this issue Jul 4, 2019 · 2 comments
Labels
Milestone

Comments

@mbredif
Copy link
Collaborator

mbredif commented Jul 4, 2019

Steps to Reproduce

  1. download https://donneespubliques.meteofrance.fr/donnees_libres/Txt/Synop/postesSynop.json
  2. rename it as postesSynop.geojson (necessary as json is not a registered extension in this example Drag'N'drop improvements #1166 )
  3. drag n drop it into http://www.itowns-project.org/itowns/examples/drag-n-drop.html

Expected Behavior

see the content (points) of this geojson on the itowns globe

Actual Behavior

the viewer zooms out very far and the globe is no longer visible

Possible Cause/Fix/Solution

The extent of this geojson is quite large, so that it may not be possible to see all points at once

@zarov zarov added the bug 🐛 label Jul 4, 2019
@zarov
Copy link
Contributor

zarov commented Jul 4, 2019

This is due to this line, because the dimensions of the extent of this file is quite big, resulting in a range value approximately equals to 23634000000. To fix it, the linked formula needs more tweaking, that I didn't take time to do when I wrote this.

@mgermerie
Copy link
Contributor

The DragNDrop plugin should be updated to use new CameraUtils method.

@mgermerie mgermerie added this to the 2.xx.x milestone Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants