Skip to content

Create layers by path or external URL with separate fields#335

Merged
martinRenou merged 9 commits intogeojupyter:mainfrom
Meriem-BenIsmail:geojson-path-selection
Jan 16, 2025
Merged

Create layers by path or external URL with separate fields#335
martinRenou merged 9 commits intogeojupyter:mainfrom
Meriem-BenIsmail:geojson-path-selection

Conversation

@Meriem-BenIsmail
Copy link
Member

@Meriem-BenIsmail Meriem-BenIsmail commented Jan 15, 2025

Towards #248.

This PR adds a new widget for path fields where it uses the FileDialog of JupyterLab for local file path selection and adds an input field for external files URL. This is done currently for GeoJSON , ShapeFile and ImageSourcesources (every source that has a path field)

geo-final


📚 Documentation preview: https://jupytergis--335.org.readthedocs.build/en/335/
💡 JupyterLite preview is available from the doc, by clicking on lite badge

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch Meriem-BenIsmail/jupytergis/geojson-path-selection

@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2025

Integration tests report: appsharing.space

@martinRenou martinRenou added the enhancement New feature or request label Jan 15, 2025
@brichet
Copy link
Collaborator

brichet commented Jan 15, 2025

Probably related to the first item of #33

@Meriem-BenIsmail
Copy link
Member Author

Probably related to the first item of #33

This merged PR #256 also resolves the item of GeoJSON source from url.

@Meriem-BenIsmail Meriem-BenIsmail marked this pull request as ready for review January 15, 2025 11: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.

Looks great!

@martinRenou martinRenou merged commit e884bf3 into geojupyter:main Jan 16, 2025
15 checks passed
@mfisher87 mfisher87 changed the title Multiple ways to create layers Create layers by path or external URL with separate fields Jan 16, 2025
HaudinFlorence pushed a commit to HaudinFlorence/jupytergis that referenced this pull request Jan 28, 2026
* use filedialog of jupyterlab for path selection.

switch between form and file dialog/

filepath modified

relative path

file name changed

reopen the creation dialog if filedialog cancel button is clicked.

* lint

* add id for path input

* path id

* lint

* file path id added to the right input

* remove geojson form filedialog title to make it more general.

* changed image url to image path.

* independant local/external file field values.
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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants