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

Update connectivity edge cases to use viewport.project #206

Open
invisibleroads opened this issue May 15, 2020 · 0 comments
Open

Update connectivity edge cases to use viewport.project #206

invisibleroads opened this issue May 15, 2020 · 0 comments
Assignees

Comments

@invisibleroads
Copy link
Member

invisibleroads commented May 15, 2020

@zoek1

The video that you posted in #204 gave me a clue to look for ways to project map coordinates to xy coordinates.

Searching through the deck.gl repository, I found references to viewport.project.

I was able to convert map coordinates to xy coordinates using viewport.project as contained in the deckGL ref.
https://github.com/AmericanPublicPowerAssociation/asset-tracker-client/blob/develop/src/hooks/map.js#L74

Would it be possible for you to rewrite your recent connectivity edge cases directly into handleAssetEdit, using viewport.project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants