Problem: Clicking on tabs other than Map caused JavaScript errors due to incorrect DOM element ID resolution in switchView() method. Root cause: The viewId extraction from button IDs didn't match the expected view element IDs, causing null reference errors when trying to add classes. Solution: - Fixed switchView() to correctly handle view IDs (e.g., "map-view") - Added null checks for DOM elements to prevent crashes - Updated this.currentView initialization and comparisons to match full IDs - Ensured view-specific initialization works with correct baseName extraction Now all tabs (Map, Table, Statistics, Coverage, 3D Radar) work without errors. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| css | ||
| js | ||
| aircraft-icon.svg | ||
| favicon.ico | ||
| index.html | ||