-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
chatgpt wrote this
Summary
Extend the existing camp-placement tool so that users can optionally place predefined interior objects (e.g. kitchen, RVs, tents, cars) within their camp perimeter. These objects are visualized as draggable, resizable shapes constrained to the camp area. This improves spatial clarity, enables basic safety validation, and helps users comply with important rules without reading extensive documentation.
Problem / Motivation
Currently, users only draw the outer perimeter of their camp. This leads to several limitations:
- Important internal structures (kitchen, RVs, circustents, etc.) are invisible
- Safety rules (fire distance, power separation, RV placement) cannot be validated reliably
- Neighbouring camps lack insight into nearby risks or dense areas
- Users who skip documentation are more likely to violate key rules unintentionally
Proposed Solution
After drawing a camp perimeter, users can optionally add interior objects to their camp.
Core Idea
- Camp perimeter remains one polygon
- Interior items are predefined object shapes (not free-drawn polygons)
- Objects live on a separate Leaflet layer from camp polygons
- Objects are:
- Draggable
- Rotatable
- Constrained to stay within the camp perimeter
- (Optionally) Scalable (within min/max bounds)
Initial Scope (Proof of Concept)
To avoid performance and validation issues:
- ❌ No user-drawn additional polygons
- ✅ Use predefined object types with fixed or limited sizes
Example Object Types
- RV / Bus
- Tent
- Car
- Kitchen
User Flow
- User draws camp perimeter
- User selects camp objects from a list
- User drags and positions objects within the perimeter
Benefits
- Improved safety validation
- Fire distance checks (e.g. RV ↔ kitchen)
- Foundation for future power-safety rules
- Better neighbourhood visibility
- Neighbouring camps can understand nearby structures
- Implicit rule compliance
- Visual constraints encourage correct placement
- Future extensibility
- Enables smarter checks without increasing polygon complexity
Technical Notes / Considerations
- Camp polygons and object shapes must be stored and rendered in separate Leaflet layers
- Validation logic should:
- Ignore object shapes for perimeter overlap checks
- Apply object-to-object and object-to-camp safety rules only
- Keep object geometry simple (rectangles / circles) for performance reasons
Out of Scope (for PoC)
- Custom-drawn or freeform object polygons
- Complex object geometry
- Power cable routing or detailed infrastructure modeling
Future Extensions
- Custom object sizing
- Object-to-object distance visualization
- Visual warnings and highlights for rule violations
- Exportable safety overview for organizers
Acceptance Criteria
- Users can place predefined objects inside their camp perimeter
- Objects cannot be moved outside the camp polygon
- Camp validation performance remains unaffected
- Safety rules can reference interior object placement
bodhi1970
Metadata
Metadata
Assignees
Labels
No labels