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

Readme not Beginner Friendly #18

Open
nlintas opened this issue Aug 27, 2022 · 1 comment
Open

Readme not Beginner Friendly #18

nlintas opened this issue Aug 27, 2022 · 1 comment

Comments

@nlintas
Copy link

nlintas commented Aug 27, 2022

My opinion as a new developer to GIS systems and Mapbox is that this libraries readme can be improved. Up to this point, I understand how to do to add them in.

let modes = MapboxDraw.modes;
modes = MapboxDrawGeodesic.enable(modes);
modes = MapboxDrawWaypoint.enable(modes);
const draw = new MapboxDraw({ modes });

I am not interested in the geojson or static functionalities in my case, only looking for a method to use the circle functionality. However, from here on I have no idea how to access the methods I need to create a circle as shown in the demo. I am currently investigating the code directly of your example to get a grip, but I don't believe that's the best approach for this. A minimal example should be in the readme, in my opinion.

@zakjan
Copy link
Owner

zakjan commented Aug 29, 2022

Hi, this library is a plugin for mabox-gl-draw. Have you registered it with addControl to your map? There should be draw controls displayed. Geodesic drawing triggers when drawing features with Draw controls.

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