greenstand / treetracker-web-map-client Goto Github PK
View Code? Open in Web Editor NEWThe front end of the treetracker web map app.
Home Page: http://map.treetracker.org
License: GNU Affero General Public License v3.0
The front end of the treetracker web map app.
Home Page: http://map.treetracker.org
License: GNU Affero General Public License v3.0
If there is only one tree in a circle, user should be able to navigate to the tree details directly. Now the user has to click sometimes even 7 times to get to the tree/user details. This takes quite a big amount of time to show the tree details.
Details:
All mobile devices and desktop
The tree marker is inaccurate, the tip of the point is not pointing to the correct/accurate coordinate on the map:
We need to make some calibration to make it correct.
Currently, the app has been handled with some case like: treetracker.org/?map_name=freetown, in this case, the timeline filter will be hidden, we also need it be hidden in the case: freetown.treetracker.org
We have some links out there such as
https://treetracker.org/?userid=3737
needs to be rerouted to ....
https://map.treetracker.org/?userid=3737
Currently a pretty strong error comes up.
https://map.treetracker.org/?map_name=mytreestrust
working case: https://map.treetracker.org/?userid=3717 they are the same.
We will assign tree names to some trees
We want to show the single capture view using a URL like
map.treetracker.org/leaf-love-sustain
Also change the left panel to show the tree name as well.
Zaven will update the backend API to support a query parameter to GET a single capture using the name
Test body
Even there are icons on the map.
Because the timeline is slow sometimes.
Details:
iPhone SE, Chrome
Similar to google maps, the URL of the treetracker map should contain the bounding box information for the location currently shown. This should change as the user navigates in the map. The user should be able to copy and paste this URL in order to share the current map view: when a URL with a bounding box query parameter is accessed, the map should move to the location of this bounding box.
For example, on maps.google.com we have: https://www.google.com/maps/@37.8508569,-122.2524834,17.11z
Like this case: https://map.treetracker.org/?map_name=wscm
We need to check if the previous code is working to set the initial view for the organization map (map_name=xxx)
So we can consider using a good setting for it.
There is a Search feature missing a lot. Search by a user, by id. This would be very nice to have.
Fixed them in branch old-version
need to merge them to the new version/master.
The map needs to show Powered by Greenstand on all maps. Custom logos should be displayed elsewhere. We will provide a lockup spec for combining the Powered by Greenstand lockup with the custom Brandmark or Lockup of the organization's map.
https://www.figma.com/file/l9GrplCZEyRF44uRHSpoIY/Web-Map?node-id=301%3A2
The data should be pulled from all trees belonging to a specific 'entity_id'
In the case of a master 'entity_id' it should contain all trees linked to that wallet and the sub-wallets of that entity.
Color codes should be used: Primary green #86c232, Secondary green #61892F, Orange #FFA500
Must be mobile friendly.
You will need to figure out how to make this map (Note, it will be worth reading up on how we have done the clustering on the main map as a lot of this work will already have been completed)
Changes from design:
When zoomed in (not fully) it is very hard to move on the map. The map sometimes doesn't react to the user fingers and only stays where is.
Details:
Samsung 10, iPhone SE (Chrome)
No trees/clusters show up on this URL, need to check what happened in this case.
Since the new version uses raster tiles to serve tree locations, we have to change our approach to the 'next tree' feature (arrows on the tree to photo to move show the next tree)
Suggested solution:
When a user first clicks on a tree and opens the side panel, load ~100 trees that are close to this tree. Keep these trees in a cache and use them to page through until the user selects a tree that is not nearby or moves the map.
To load trees:
First try a .01 degree by .01 degree bounding box around the selected tree using a bounding box query for tree points ( such as https://prod-k8s.treetracker.org/webmap/trees?clusterRadius=0&zoom_level=17&bounds=37.4277001224301,-3.3264942011693543,37.41518600805022,-3.336982120489781). If there are no trees returned, try again with a .1 by .1 degree bounding box, then a 1 x 1 degree bounding box until trees are found within the shown bounding box to step through.
https://wallet.treetracker.org/?wallet=Michael_R
There was some problem in this case before, check it in the new version.
Quick wallet UX upgrade
Want to show
Total number of tokens in wallet
Total number of planters connected to tokens in wallet
Total number different species connected to tokens in wallet
Show these each as changing graphs/charts over time, on a monthly basis
Implement as a bottom panel to the wallet map only (not the main maps)
Also include some basic information about the wallet.
Three graphs horizontally along the bottom
NOTE: the freetown.treetracker.org case
The https://treetracker.org site should open up with the left panel active. We need UX UI help to define what to display there. A short introduction (if no cookies are present) of the project and what this is about. Maybe a bit of statistics ... Amount of total tree tracking events, mabye statistic by continent, once in continent by country, or markers such as how many FMNR trees, social impact counter etc.
Planter of the months, last active tracking, etc
https://treetracker.org/?map_name=TheHaitiTreeProject. The initial zoom that is calculated turns out to be at the wrong location.
There is some deviation
Raj from the greening India project has pointed out that there is no way to find the actually tracked trees at the moment so we though a simple location link that opens up Google Maps would be enough for now. This is very simple. This is roughly what it should look like...
https://www.google.com/maps/dir//-6.4349354,38.2180494
See below the two images. Second icon should open the users map to quickly see the overview. (such as https://treetracker.org/?userid=3336)
Changing the order of icons first the pin icon with link to individual_tree, then the user_info_icon and then the user_map_icon
timeline icon should not show when side panel is open
timeline icon should never show when viewing a single tree link (like ?treeid=12312 or ?tree_name=test-name)
When rerender the map (by sliding the timeline) , can not cancel previous loading tile image and utf grid.
Show the timeline icon for case: https://map.treetracker.org/?userid=1
And be able to slide the timeline to filter the tree by date, for the current userid/planter.
Like:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.