Skip to content

v0.4.2

Choose a tag to compare

@troykelly troykelly released this 30 Dec 05:33

What's Changed

New Features

  • Expose GeoJSON geometry in geo_location entity attributes (#99, #100)
    • Add geojson attribute with standard GeoJSON Polygon/MultiPolygon format
    • Add geometry_type attribute indicating original geometry type
    • Add has_polygon boolean for quick polygon availability check
    • Supports inner rings (holes) for accurate boundary rendering

This enables the ABC Emergency Map Card (lovelace-abc-emergency-map) to render incident polygon boundaries on Leaflet maps using the native L.geoJSON() function.

Example Usage

# Access in templates
{{ state_attr('geo_location.bushfire_abc_emergency', 'geojson') }}
{{ state_attr('geo_location.bushfire_abc_emergency', 'has_polygon') }}

Full Changelog: v0.4.1...v0.4.2