-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add WIP map view #536
Open
simonbukin
wants to merge
15
commits into
theosanderson:add-map-view
Choose a base branch
from
simonbukin:add-map-view
base: add-map-view
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add WIP map view #536
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d7df0f1
Add leaflet and wrap Treenome in own component
923c9a1
Add toggle to show map view (displays cat picture)
5a3f528
Add map view w/ heatmap based on tree sample data
9f74398
Cleanup View code
fe349d6
Separate out map state and orthographic state
5537976
Fix map colors and clean up code
14e3abe
Merge branch 'master' of https://github.com/theosanderson/taxonium in…
bdd87cb
Merge branch 'master' of https://github.com/theosanderson/taxonium in…
cf33a82
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8174d24
Update map view to work in Storybook
0066aae
Merge branch 'theosanderson:master' into add-map-view
simonbukin b835f72
Update .gitignore and remove extra merged folder
99d7cb1
Remove redundant colors code
f75cf00
Fix minimap crash
f0c735c
Disable minimap when map view is open
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import JBrowsePanel from "./JBrowsePanel"; | ||
import { JBrowseErrorBoundary } from "./JBrowseErrorBoundary"; | ||
|
||
export default function TreenomeBrowser({ state, settings }) { | ||
return ( | ||
<JBrowseErrorBoundary> | ||
<JBrowsePanel treenomeState={state} settings={settings} /> | ||
</JBrowseErrorBoundary> | ||
); | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We seem to have ended up with the zoom controls repeated 2x, once on the map and once on the tree. (I'd say they are better just on the tree).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a usecase where zooming into the map would be helpful? I was assuming that users may want to zoom into part of the map to view pie charts in only certain regions (eventually), but maybe you had a different idea here. Would the map view be fully zoomed out by default if we remove the zoom functionality?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, there might be use cases where zooming would be useful - but atm the buttons on the map affect the tree so this is not achieved. I don't see a strong need for zoom buttons for the map -- as opposed to panning and scrolling -- we need them for the tree due to separate X and Y zooms.