Skip to content

Create and edit vector layers #692

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

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

HaudinFlorence
Copy link
Contributor

@HaudinFlorence HaudinFlorence commented May 12, 2025

Addresses some of #395 ; resolves #775

Create and edit vector layers

Screencast.From.2025-06-09.11-49-15.mp4
  • the creation of a new vector layer with empty geojson source is possible using the + button of the toolbar, then selecting add new vector layer and new geoJSON Layer leading to the opening of the dedicated Dialog.
    Changes have been done to enable situations where no path is provided
  • 3 geometries are enabled for draw interactions : Point, LineString and Polygon

📚 Documentation preview: https://jupytergis--692.org.readthedocs.build/en/692/
💡 JupyterLite preview: https://jupytergis--692.org.readthedocs.build/en/692/lite

Copy link
Contributor

Binder 👈 Launch a Binder on branch HaudinFlorence/jupytergis/create_and_edit_vector_layers

@HaudinFlorence HaudinFlorence added the enhancement New feature or request label May 12, 2025
@HaudinFlorence HaudinFlorence marked this pull request as draft May 12, 2025 12:00
@HaudinFlorence HaudinFlorence force-pushed the create_and_edit_vector_layers branch 2 times, most recently from 340db85 to 916653b Compare May 12, 2025 13:11
@mfisher87
Copy link
Member

Yess! This feature is very in-demand :) 👏

@HaudinFlorence HaudinFlorence force-pushed the create_and_edit_vector_layers branch from 916653b to d28d98c Compare May 13, 2025 08:40
@HaudinFlorence
Copy link
Contributor Author

HaudinFlorence commented May 13, 2025

Yess! This feature is very in-demand :) 👏

Thanks for having added the link to the related issue @mfisher87 . The first version will probably be a simple one not including all the features mentioned in the issue.

Copy link
Contributor

github-actions bot commented May 13, 2025

Integration tests report: appsharing.space

@HaudinFlorence HaudinFlorence force-pushed the create_and_edit_vector_layers branch 6 times, most recently from e0b14ec to da4628c Compare May 14, 2025 16:43
@HaudinFlorence HaudinFlorence marked this pull request as ready for review May 14, 2025 17:07
@martinRenou martinRenou marked this pull request as draft May 15, 2025 06:53
@martinRenou
Copy link
Member

If you don't mind, I turn this PR in draft for now (it helps me knowing if the PR requires a review)

@HaudinFlorence HaudinFlorence force-pushed the create_and_edit_vector_layers branch 4 times, most recently from 29935fa to 0a1d7c7 Compare May 19, 2025 14:16
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I made some suggestions

@HaudinFlorence HaudinFlorence force-pushed the create_and_edit_vector_layers branch 6 times, most recently from 20d5375 to 7c0dbda Compare May 22, 2025 22:22
HaudinFlorence and others added 10 commits June 17, 2025 14:14
…y to not have a path provided and to enable the creation of an empty layer with geoJSON source with embedded data.
…plus toolbar button and using the already existing dialog and form.

  Modify the logics to enable situations where no path is provided in the dialog.
  Remove the command addNewDrawVectorLayer and the toolbar button.
  Remove method createEmptyVectorLayerWithGeoJSONSource from JupyterGISModel class and IJupyterGISModel interface.
  Update _handleDrawGeometryTypeChange method from the MainView class.
  Add a condition if GeoJSONSourcePropertiesForm for the case where there is no path.
…remove the condition for no path case that was wrongly in the onFormSubmit method of the parent class PathBasedSourceProperties.

Update _handleDrawGeometryTypeChange in MainView class.
Co-authored-by: martinRenou <martin.renou@gmail.com>
In leftPanel,use notifyCommandChanged for all commands.
Fix bug regarding the overlay display when a draw vector layer is removed.
Enable the toggleDrawFeature command only when the layer is a draw vector layer one.
@HaudinFlorence HaudinFlorence force-pushed the create_and_edit_vector_layers branch 3 times, most recently from 193108d to 0fc0f9f Compare June 17, 2025 13:07
Add Select interaction.
Set activity of the different interactions properly.
@HaudinFlorence HaudinFlorence force-pushed the create_and_edit_vector_layers branch from 0fc0f9f to ce17370 Compare June 17, 2025 13:10
Co-authored-by: martinRenou <martin.renou@gmail.com>
@HaudinFlorence HaudinFlorence force-pushed the create_and_edit_vector_layers branch 3 times, most recently from b47a58c to 03dfcda Compare June 18, 2025 10:08
…ent calling editVectorLayer on irrelevant layers.
@HaudinFlorence HaudinFlorence force-pushed the create_and_edit_vector_layers branch from 03dfcda to 65e400e Compare June 18, 2025 11:59
@HaudinFlorence HaudinFlorence marked this pull request as ready for review June 18, 2025 13:22
@martinRenou
Copy link
Member

Thanks!

@mfisher87 would you have time to have a look?

How about we tackle the VectorLayer type property separately from this PR?

@mfisher87
Copy link
Member

How about we tackle the VectorLayer type property separately from this PR?

That sounds good to me!

@mfisher87
Copy link
Member

@mfisher87 would you have time to have a look?

Started reviewing today but ran out of time, too many meetings and stuff :X I'm off the rest of the week but will definitely have time to look closer Monday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Create vector features by drawing on map
3 participants