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

Consider snapping modes #865

Closed
davidgilbertson opened this issue Jan 28, 2019 · 5 comments
Closed

Consider snapping modes #865

davidgilbertson opened this issue Jan 28, 2019 · 5 comments
Labels
feature ui Buttons & user interactions

Comments

@davidgilbertson
Copy link

Hello there map friends. I've written some custom modes so the drawing tools snap to right angles and other features.

https://github.com/davidgilbertson/draw-geoson (and https://drawgeojson.firebaseapp.com/)

It's just the start of a larger project for me, but if you'd like to include the logic in this repo that'd be cool.

@kilazi
Copy link

kilazi commented Oct 8, 2019

thank you so much, this is awesome!

@kkaefer kkaefer added feature ui Buttons & user interactions labels Jan 7, 2020
@vc-void
Copy link

vc-void commented Sep 9, 2020

Pretty awesome, any chance you can update the repo link?

@davidgilbertson
Copy link
Author

That repo grew into a commercial product and is no longer open source, sorry about that.

@mhsattarian
Copy link
Contributor

Hi @davidgilbertson, I found your example the only one currently working properly, I collected the code from your example in a Stackblitz project.
I hope It's ok since the code in your example was already public online. If not I will remove it.

for anyone looking for a snapping mode for mapbox-gl-draw, I've also created a snapping mode, which can snap to segments (in addition to vertices as in @davidgilbertson example). will publish that soon.

@mhsattarian
Copy link
Contributor

I created my version of snapping mode, it's in the early stages:
https://github.com/mhsattarian/mapbox-gl-draw-snap-mode
hope you enjoy it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ui Buttons & user interactions
Projects
None yet
Development

No branches or pull requests

5 participants