Power Outages
The Power Outages layer shows live Duke Energy Florida outages on the map, either as individual outages or rolled up by county and set against the CDC Social Vulnerability Index (SVI).
The button needs the feature.power_outage permission, see Roles and Permissions. Duke Energy customers only are covered, not OUC, FPL, TECO or the electric co-ops.
Enabling the Layer
In the sidebar under UCF → Power Outages, click Power Outages. The button reads "Loading Outages..." while the data loads, then "Hide Power Outages". Click it again, or the × in the panel header, to turn the layer off. If the data cannot be loaded an alert says so and nothing is drawn.
The data refreshes every 5 minutes while the layer is on.
Display Modes
The panel at the corner of the map switches between three views:
| Mode | What it draws |
|---|---|
| Individual outages | One circle per outage, colored by customers affected: under 20, 20 to 99, 100 to 999, 1,000 or more. Nearby outages merge into a numbered badge that grows with the count and splits as you zoom in |
| County: % customers out | Each county polygon colored by the share of its Duke customers without power: no outages, under 0.1%, 0.1 to 1%, 1 to 5%, 5% or more |
| County: % out (height) × SVI (color) | Each county extruded by the share of customers out and colored by its SVI score (under 0.25, 0.25 to 0.50, 0.50 to 0.75, 0.75 or more). A county with 1% of customers out stands about 15 km tall |
In the SVI mode the panel also lists the five counties with the highest % out × SVI, the places where an outage reaches the most vulnerable people. SVI values come from the same CDC/ATSDR 2022 county file used by the SVI analysis filter.
Panel
The panel shows the total outages and customers out, when the data was fetched and whether it is stale, the mode switch, a legend for the current mode, and a detail area. Click an outage or a county on the map to fill the detail area:
- Outage: its ID, customers affected, cause and county
- County: customers out of customers served, the percentage, active outage count and SVI
The panel sits in the bottom-right corner above the sidebar. It moves to the first corner not covered by another floating panel, and collapses to its header when every corner is taken. Click the header to fold or unfold it.
Data Source
The browser calls GET /power-outages/duke-fl on the Express server, which reads the same free feed behind outagemap.duke-energy.com, caches it for 5 minutes and assigns each outage to a Florida county. If Duke is unreachable the last good payload is returned with stale: true and the panel marks it "(stale)". See the endpoint contract.
Implementation Notes
- Frontend:
client/public/js/app.js,loadPowerOutages,renderPowerOutages,updatePowerOutagePanel,ensurePowerOutagePanel,placePowerOutagePanel - State:
powerOutagesVisible,powerOutageMode(points,pct,svi),powerOutageData,powerOutageDataSource - Individual outages use a clustered
CustomDataSource; county modes are polygon entities