v0.4.2
What's Changed
New Features
- Expose GeoJSON geometry in geo_location entity attributes (#99, #100)
- Add
geojsonattribute with standard GeoJSON Polygon/MultiPolygon format - Add
geometry_typeattribute indicating original geometry type - Add
has_polygonboolean for quick polygon availability check - Supports inner rings (holes) for accurate boundary rendering
- Add
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