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 on map #81

Closed
JonasVautherin opened this issue Jun 5, 2019 · 1 comment
Closed

Draw on map #81

JonasVautherin opened this issue Jun 5, 2019 · 1 comment
Labels
question Further information is requested

Comments

@JonasVautherin
Copy link

Is there a way to draw on top of the map?

For instance, say:

  • I have an Uber-like app, and I want to move a car symbol and draw a line on the path it took.
  • I want to mark an area of interest (e.g. draw a translucid polygon on top of the map), and have interactive handles to it (so the user can increase the size of that area or change its shape).

Is there currently a way to do that, or should I somehow draw on some transparent canvas on top of the map? And in the latter case, can I know that the map moved in order to update the canvas? Would that look "smooth", or would we see that the map and the canvas are not synchronized?

@tobrun tobrun added the question Further information is requested label Jun 9, 2019
@tobrun
Copy link
Collaborator

tobrun commented Jun 9, 2019

These specific UX requirements are currently not in scope for this plugin. Mainly because they are so specific and this plugin is a side-project to cater to the most common use-cases. Most of these requirements require a style compatible api from #17 . You should be able to pull this off with using the native mobile SDKs directly.

Some tips:

  • draw line behind a symbol

  • I want to mark an area of interest (e.g. draw a translucid polygon on top of the map), and have interactive handles to it (so the user can increase the size of that area or change its shape).

  • and in the latter case, can I know that the map moved in order to update the canvas?

    • there are numerous map change events that are emitted by the SDK if the camera changes
  • Would that look "smooth", or would we see that the map and the canvas are not synchronized?

    • on Android it's advised to use the sdk components and not try synchronizing views on top of the map. (fwiw this is what the deprecated MarkerView API did and it wasn't performant).

If you feel this project is missing a specific API and you would like to add it, we do accept PRs!

@tobrun tobrun closed this as completed Jun 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants