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

Added fix for popup bug #28

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Added fix for popup bug #28

merged 2 commits into from
Oct 23, 2024

Conversation

RyanBirtch-aot
Copy link
Owner

@RyanBirtch-aot RyanBirtch-aot commented Oct 22, 2024

Description

Once the submitter hit the limit of features (Marker, Circle, Polygon, etc..) added to the map, the user was not given any indication that they cannot add another feature. This enables a popup in the center of the map to notify the user that they have added all the features they can.

Types of changes

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have run the npm script lint on the frontend and backend
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have approval from the product owner for the contribution in this pull request

Further comments

@@ -54,10 +54,14 @@ class MapService {
map.on('draw:created', (e) => {
const layer = e.layer;
if (drawnItems.getLayers().length === options.numPoints) {
console.log('too many markers');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove the console

Copy link
Owner Author

Choose a reason for hiding this comment

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

Removed

@abhilash-aot abhilash-aot merged commit a2176e6 into feat-map Oct 23, 2024
6 checks passed
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