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

Draw polygon #31

Closed
shunplus opened this issue Sep 7, 2021 · 1 comment
Closed

Draw polygon #31

shunplus opened this issue Sep 7, 2021 · 1 comment

Comments

@shunplus
Copy link

shunplus commented Sep 7, 2021

I want to draw a polygonal area, how should I use it?

@p-lr
Copy link
Owner

p-lr commented Sep 7, 2021

You can achieve this by adding a custom view which is registered as a ReferentialListerner. See the doc here. If your polygon area needs to scale when the user zoom, you can set the scale of the canvas using the scale of the ReferentialOwner (your custom view).
Using a custom view, you can draw anything you want on the MapView, and position/scale/rotate it accordingly.

@p-lr p-lr closed this as completed Oct 30, 2021
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