- Updated DistrictLayer to dispatch custom events for incident clicks and map fly-to actions. - Enhanced DistrictFillLineLayer to support a new onDistrictClick prop for handling district interactions. - Improved Layers component to manage district and incident selections, including new event listeners for incident clicks. - Refactored UnclusteredPointLayer to streamline incident click handling and map interactions. - Introduced FlyToHandler component to centralize fly-to event handling and highlight effects for incidents. - Cleaned up event listener management across components to ensure proper cleanup and avoid memory leaks. |
||
---|---|---|
.. | ||
controls | ||
layers | ||
legends | ||
markers | ||
pop-up | ||
crime-map.tsx | ||
fly-to-handler.tsx | ||
fly-to.tsx | ||
map.tsx | ||
overlay.tsx |