Skip to content

Update connectivity edge cases to use viewport.project #206

@invisibleroads

Description

@invisibleroads

@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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions