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

Add and/or edit drawn geometry properties #2047

Open
giswqs opened this issue Jun 16, 2024 · 1 comment
Open

Add and/or edit drawn geometry properties #2047

giswqs opened this issue Jun 16, 2024 · 1 comment
Labels
Feature Request New feature or request

Comments

@giswqs
Copy link
Member

giswqs commented Jun 16, 2024

This is a feature request for adding surpport for adding and/or editing drawn geometry properties, similar to the EE JavaScript Code Editor. Currently, the ipyleaflet DrawControl has a data attribute that stores a list of drawn geometries. However, the data attribute is overwritten after each draw event. We need to figure out a way to store the properties and associate them with the drawn geometries.

Relevent issues:

image

@giswqs giswqs added the Feature Request New feature or request label Jun 16, 2024
@giswqs
Copy link
Member Author

giswqs commented Jun 16, 2024

Just realized that the AbstractDrawControl class in the core module already has the following methods for setting geometry properties.

  • get_geometry_properties(self, geometry)
  • set_geometry_properties(self, geometry, property)

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
None yet
Development

No branches or pull requests

1 participant