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

Editing #387

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Editing #387

wants to merge 6 commits into from

Conversation

m-elseberg
Copy link
Contributor

Editing capabilities are, of course, a central part of many GIS apps. However, the current implementation is limited to polygons and the OGC Features API.

This pull request suggests a more general-purpose editing solution, which evolved throughout one of our projects. Features include:

  • creating and updating any geometry type (polygons, line strings, points, circles),
  • pre-configurable or fully custom attribute forms,
  • ability to save features anywhere,
  • snapping.

To test this implementation, open the following local sample: http://localhost:5173/samples/editing-sample/. For ease of testing, this sample saves the created features to the browser's IndexedDB.

This solution is not expected to be feature-complete or to meet everyone's needs. For one thing, it is still lacking documentation.

(screenshots: 1, 2)

Gets rid of two console error messages:
- "Warning: Circle2: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead."
- "Warning: CircleSwatch2: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead."

See: casesandberg/react-color#888
Copy link

changeset-bot bot commented Dec 23, 2024

⚠️ No Changeset found

Latest commit: bb1690c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@m-elseberg m-elseberg marked this pull request as draft December 23, 2024 17:15
@mbeckem
Copy link
Contributor

mbeckem commented Jan 2, 2025

I updated the vite config and license report config to get the samples to build. Nitpick: the react-color dependency looks unmaintained and references some very old packages (e.g. @material/icons). Should probably use an alternative.

Copy link
Contributor

github-actions bot commented Jan 2, 2025

PR Preview Action v1.4.7
🚀 Deployed preview to https://open-pioneer.github.io/trails-pr-previews/openlayers-base-packages/pr-previews/pr-387/
on branch gh-pages at 2025-01-02 11:07 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants