{{ message }}
#843 DrawTool - Template for Point Type#844
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

With Claude Code.
DrawTool Point Template Field Implementation
Summary
Implements a new "point" template field type for the MMGIS DrawTool that enables users to associate point annotations with drawn features. Points are stored as metadata within the parent feature (not as separate DrawTool features) and are visible on the map as colored markers.
Related:
Features Implemented
Core Functionality
Smart Point Numbering
Point Editing
Reset & Undo Functionality
Max Points Limit
Two-Layer Rendering System
User Experience Improvements
Changes by File
Frontend (Primary Implementation)
src/essence/Tools/Draw/DrawTool_Templater.js
src/essence/Tools/Draw/DrawTool_Files.js
src/essence/Tools/Draw/DrawTool_Editing.js
src/essence/Tools/Draw/DrawTool.js
src/essence/Tools/Draw/DrawTool_Templater.css
Backend (Bug Fixes)
API/Backend/Draw/routes/draw.js
Bugs Fixed
- Fixed error when adding features after deleting all features with clip mode enabled
- Replaced null/empty history with [-1] placeholder to generate valid SQL
- Fixed points appearing twice when clicking feature to edit
- Implemented hide/show mechanism for permanent markers during editing
- Fixed closing edit panel or clicking Reset not reverting unsaved changes
- Implemented deep copy of original properties with _changesSaved flag
- Fixed crash when iterating over layers containing associated points
- Added null check to skip associated points in destroy function
- Fixed error when hovering over files with associated points
- Skip associated points in mouseenter/mouseleave handlers
- Fixed Add Pt button click handler not called when at max points
- Changed from disabled attribute to CSS class .at-max to preserve click events
- Fixed new points using array index instead of filling gaps in numbering
- Implemented findNextAvailableNumber() function with smart gap-filling
Testing Performed
Manual Testing
Edge Cases Tested
Breaking Changes
None. This is a new feature with no impact on existing functionality.
Known Limitations
Screenshots
Add screenshots showing:
Checklist
Ready for review! This PR implements the complete DrawTool point template field feature as specified in specs/010-drawtool-point-template-field/spec.md.