Skip to content

Add GlobeControl for globe projection support#12

Merged
giswqs merged 9 commits intomainfrom
features
Feb 16, 2026
Merged

Add GlobeControl for globe projection support#12
giswqs merged 9 commits intomainfrom
features

Conversation

@giswqs
Copy link
Member

@giswqs giswqs commented Feb 16, 2026

Summary

Adds the MapLibre GlobeControl to enable globe projection view.

Changes

  • Added GlobeControl to MapLibreAdapter for 3D globe projection support
  • Users can toggle between flat (Mercator) and globe projection

Note

Some basemaps (especially CartoDB) may not render optimally in globe mode due to lighting/styling differences. OpenFreeMap styles work better with globe projection.

Test Plan

  • Click the globe button in the top-right controls
  • Verify map switches to globe projection
  • Try with different basemaps (OpenFreeMap vs CartoDB)

…s, and more

New Features:
- Attribute table with sort, filter, statistics, and export
- Style editor for vector layers (fill, stroke, point styling)
- Export dialog (map to PNG, layer to GeoJSON/CSV)
- Command palette (Ctrl+Shift+P) for quick access
- Go to coordinates dialog (Ctrl+G)
- Settings panel with preferences
- KML/KMZ and CSV file loading support
- WMS/WMTS service connections
- Drag-and-drop file loading onto map
- Layer reordering via drag-and-drop
- Layer context menu with full options
- Identify tool for feature attributes
- Keyboard shortcuts (I, M, Escape, etc.)
- Status bar with scale and coordinate format toggle

UI Improvements:
- More basemap options (CartoDB styles)
- Better toolbar organization
- Global keyboard shortcut handling
- Modal dialog system for overlays

Utilities:
- src/utils/parsers.ts - KML, CSV parsing
- src/utils/geo.ts - Bounds, stats, formatting
- src/utils/export.ts - PNG and data export

Updated CLAUDE.md with progress tracking
Changed from absolute positioning to flex layout to avoid
overflow-hidden clipping issues. The table now takes space
from the map area rather than overlaying it.
Added ResizeObserver to MapCanvas that calls map.resize() when
the container size changes. This fixes the black screen issue
when closing the attribute table.
Use fixed positioning instead of flex layout to avoid
overflow-hidden clipping issues. The table now positions
itself at the bottom of the viewport, above the status bar.
The table now appears as a modal with a semi-transparent backdrop
that covers the screen. Clicking the backdrop closes the table.
This should fix the black screen issue by properly layering the UI.
The GlobeControl was causing visual issues because the current
basemaps (OpenFreeMap, CartoDB) don't support MapLibre's globe
projection. For 3D globe visualization, use the Cesium backend.
MapLibre supports globe projection. Note: some basemaps like
CartoDB may not render properly in globe mode. OpenFreeMap
styles work better with globe projection.
@giswqs giswqs merged commit 75ce8ef into main Feb 16, 2026
4 checks passed
@giswqs giswqs deleted the features branch February 16, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant