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

feat: allow to modifiy circle geometry #270

Merged
merged 16 commits into from
May 10, 2024
Merged

feat: allow to modifiy circle geometry #270

merged 16 commits into from
May 10, 2024

Conversation

oterral
Copy link
Contributor

@oterral oterral commented Apr 30, 2024

How to

Add a manually a feature with a circle geometry in the index.html file, the try to modify it.

Others

  • It's not a hack or at least an unauthorized hack :).
  • The images added are optimized.
  • Everything in ticket description has been fixed.
  • The author of the MR has made its own review before assigning the reviewer.
  • The title is formatted as a conventional-commit message.
  • The title contains WIP: if it's necessary.
  • Labels applied. if it's a release? a hotfix?
  • Tests added.

IMPORTANT: Squash commits before or on merge to prevent every small commit being written into the change log. The Pull Request title will be written as message for the new commit containing the squashed commits and there fore needs to be in conventional-commit format

Copy link

vercel bot commented Apr 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
openlayers-editor ❌ Failed (Inspect) May 10, 2024 10:37am

@oterral oterral changed the title chore(release): 2.2.1-beta.0 Manage cricles May 2, 2024
Copy link
Contributor

@danji90 danji90 left a comment

Choose a reason for hiding this comment

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

Just some minor suggestions, otherwise LGTM

if (index > -1) {
features.splice(index, 1);
const currentFeatures = [editFeature, drawFeature].filter((f) => !!f);
const nb = nbFeatures || 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

why is nbFeatures more readable then numFeatures? Maybe numberFeatures?
And can we put the default value in the arguments?
getClosestFeatures(coordinate, nbFeatures = 1)

Copy link
Contributor

Choose a reason for hiding this comment

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

The node version in vercel needs to be upgraded and the Cypress tests are failing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@oterral oterral changed the title Manage cricles feat: manage cricles May 10, 2024
@oterral oterral changed the title feat: manage cricles feat: manage circles May 10, 2024
@oterral oterral changed the title feat: manage circles feat: allow to modifiy circle geometry May 10, 2024
@oterral oterral merged commit 18deb75 into master May 10, 2024
2 of 6 checks passed
@oterral oterral deleted the olivier/circle-geom branch May 10, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants