Greenstand / Greenstand/treetracker-query-api

New API to get the initial bounds of entities

Open
#308 0 comments 0 reactions 0 assignees View on GitHub
challenge good first issue postgis
Dominant language
TypeScript
Stars
18
Forks
65
PR merge metrics
No merged PRs in 30d

Description

When we open a map, the map core needs to get the initial bounds of map view for the opening entity, for example: the wallet, current we are using a legacy API to do it, you can find it in the page: https://beta-map.treetracker.org/wallets/heveya.replant.world
The algorithm for this is inaccurate, we need to develop a better way to get the initial view, before, we are using the cluster data to get the best center + zoom level, but sometimes the cluster data is not so good, and the center+zoom level is also not so good, maybe we can draw a rectangle for all tree points and get the direct bounds (coordinates of the two corners) because the new lib leaflet support it (direct jump to a bounds)

---

Some hints:

- Please read our readme for more information/guide/tutorial.
- Here is [an engineering book](https://greenstand.gitbook.io/engineering/) in Greenstand.
- To know more about our organization, visit our [website](https://greenstand.org).
- If you want to join the slack community (some resources need the community member's permission), please leave your email address.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.