Skip to content

v1.7.7 - Optional Polygon Boundary Mode and Boundary Builder

Choose a tag to compare

@yellowcooln yellowcooln released this 23 Mar 01:38
· 77 commits to main since this release
a05bbe6

v1.7.7

This release adds optional polygon-based map boundaries while keeping the existing radius filter as the default.

Changes

  • Added MAP_BOUNDARY_MODE with support for:

    • radius (default)
    • polygon
  • Added MAP_BOUNDARY_FILE for loading polygon boundary JSON

  • Added MAP_BOUNDARY_SHOW to 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.json as 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=true

Notes

  • Default behavior is unchanged unless MAP_BOUNDARY_MODE=polygon is 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