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

Change the bounds format to follow google map #658

Open
dadiorchen opened this issue Jul 2, 2022 · 0 comments · May be fixed by #1715
Open

Change the bounds format to follow google map #658

dadiorchen opened this issue Jul 2, 2022 · 0 comments · May be fixed by #1715
Labels
challenge hard, tricky, problem GIS

Comments

@dadiorchen
Copy link
Collaborator

Currently, we update the map bounds on URL as below: https://map.treetracker.org/?userid=3350&bounds=-73.65242958068849,18.26000128888889,-73.52883338928224,18.291623758731028

https://www.google.com/maps/@22.38131,114.168639,11z

so the new URL should be:
https://map.treetracker.org/?userid=3350&bounds=22.38131,114.168639,11z

This brings two downsides:

  1. The formated string is a bit long
  2. The two corner points format need more calculation if the target screen is different, the google map format is more reasonable, by providing the zoom level and the center point.

Some hints:

@dadiorchen dadiorchen added good first issue Good for newcomers GIS labels Jul 2, 2022
@dadiorchen dadiorchen added challenge hard, tricky, problem and removed good first issue Good for newcomers labels Jul 1, 2023
@QuanGiap QuanGiap linked a pull request Sep 9, 2023 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenge hard, tricky, problem GIS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant