v1.7.7 - Optional Polygon Boundary Mode and Boundary Builder
v1.7.7
This release adds optional polygon-based map boundaries while keeping the existing radius filter as the default.
Changes
-
Added
MAP_BOUNDARY_MODEwith support for:radius(default)polygon
-
Added
MAP_BOUNDARY_FILEfor loading polygon boundary JSON -
Added
MAP_BOUNDARY_SHOWto control boundary overlay visibility -
Polygon boundaries now apply consistently to:
- devices
- routes
- history
-
Added frontend polygon overlay rendering from backend-injected boundary JSON
-
Added
map_boundary.example.jsonas the reference schema -
Added a standalone boundary builder:
tools/map-boundary-builder.html
-
Added hosted boundary builder:
Boundary JSON Format
{
"name": "Example Boundary",
"points": [
[42.4705, -71.2902],
[42.4112, -71.4046],
[42.2987, -71.3651]
]
}Example Config
MAP_BOUNDARY_MODE=polygon
MAP_BOUNDARY_FILE=/data/map_boundary.json
MAP_BOUNDARY_SHOW=trueNotes
- Default behavior is unchanged unless
MAP_BOUNDARY_MODE=polygonis set - Radius mode remains the fallback/default
- The standalone builder is not part of the live app UI; it is a separate utility for generating boundary JSON files
Testing
-
Added boundary module tests
-
Added frontend config injection coverage for boundary mode
-
Test suite passing:
82 passed, 2 skipped