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

Get user drawn features as a GeoJSON #2

Closed
giswqs opened this issue May 25, 2021 · 1 comment
Closed

Get user drawn features as a GeoJSON #2

giswqs opened this issue May 25, 2021 · 1 comment
Assignees
Labels
Feature Request New feature or request
Projects

Comments

@giswqs
Copy link
Member

giswqs commented May 25, 2021

Users can draw multiple features on the map. However, ipyleaflet can only return the last drawn feature. It would be useful to return all user-drawn features as a GeoJSON dict.

@giswqs giswqs added the Feature Request New feature or request label May 25, 2021
@giswqs giswqs added this to To do in leafmap via automation May 25, 2021
@giswqs giswqs self-assigned this May 25, 2021
giswqs added a commit that referenced this issue May 25, 2021
@giswqs
Copy link
Member Author

giswqs commented May 25, 2021

This feature has been implemented.

  • m.user_roi to get the last draw feature
  • m.user_rois to get all draw features as a GeoJSON
  • m.draw_features to get all draw features as a list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
Development

No branches or pull requests

1 participant