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

Tree pagination feature #31

Closed
dadiorchen opened this issue Dec 2, 2021 · 0 comments
Closed

Tree pagination feature #31

dadiorchen opened this issue Dec 2, 2021 · 0 comments
Labels
good first issue Good for newcomers leaflet

Comments

@dadiorchen
Copy link
Collaborator

dadiorchen commented Dec 2, 2021

This feature is for navigating between tree point on the map, refer to this link: https://map.treetracker.org/?&bounds=-13.218893967568878,8.427470595924952,-13.187994919717314,8.444408553605653 the load is slow, be patient. ( when you click the tree icon, a panel will show up, on the panel, there is the next/prev button)
Basically, we need to be able to know from the map core: if there are multiple tree points showing up on the map, then, tell the map core to jump to (select) the next tree point.

So the API of this feature would be like:

function treeCountOnTheMap() : number // return the number of tree on the map

function goNextTree() : void // indicate core to jump to the next tree.

function getPreviousTree() : void // jump to previous tree

Actually, we almost implemented this feature in the master branch of web map client https://github.com/Greenstand/treetracker-web-map-client so please refer to code there.

image


Some hints:

  • Please read our readme for more information/guide/tutorial.
  • Here is an engineering book in Greenstand.
  • To know more about our organization, visit our website.
  • If you want to join the slack community (some resources need the community member's permission), please leave your email address.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers leaflet
Projects
No open projects
Development

No branches or pull requests

1 participant