fix terminator

pull/1/head
accius 6 days ago
parent 7b35b8c322
commit 70001f58aa

@ -84,7 +84,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- CORS issues with external APIs now handled by server proxy
- Map projection accuracy improved
## [2.0.0] - 2026-01-29
## [2.0.0] - 2024-01-29
### Added
- Live API integrations for NOAA space weather
@ -99,7 +99,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved space weather display with color coding
- Better visual hierarchy in panels
## [1.0.0] - 2026-01-29
## [1.0.0] - 2024-01-29
### Added
- Initial release
@ -130,8 +130,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
| 3.2.0 | 2026-01-30 | Theme system (dark/light/legacy) |
| 3.1.0 | 2026-01-30 | User settings, DX cluster fixes |
| 3.0.0 | 2026-01-30 | Real maps, Electron, Docker, Railway |
| 2.0.0 | 2026-01-29 | Live APIs, improved map |
| 1.0.0 | 2026-01-29 | Initial release |
| 2.0.0 | 2024-01-29 | Live APIs, improved map |
| 1.0.0 | 2024-01-29 | Initial release |
---

@ -789,27 +789,37 @@
const map = L.map(mapRef.current, {
center: [20, 0],
zoom: 2,
minZoom: 1,
minZoom: 2,
maxZoom: 18,
worldCopyJump: true,
zoomControl: true
worldCopyJump: false,
zoomControl: true,
maxBounds: [[-85, -180], [85, 180]],
maxBoundsViscosity: 1.0
});
// Initial tile layer
tileLayerRef.current = L.tileLayer(MAP_STYLES[mapStyle].url, {
attribution: MAP_STYLES[mapStyle].attribution,
noWrap: false
noWrap: true
}).addTo(map);
// Day/night terminator
// Day/night terminator with resolution option for smoother rendering
terminatorRef.current = L.terminator({
fillOpacity: 0.4,
fillColor: '#000010',
resolution: 2,
fillOpacity: 0.35,
fillColor: '#000020',
color: '#ffaa00',
weight: 2,
dashArray: '5, 5'
}).addTo(map);
// Refresh terminator after a short delay to ensure proper rendering
setTimeout(() => {
if (terminatorRef.current) {
terminatorRef.current.setTime();
}
}, 100);
// Update terminator every minute
setInterval(() => {
if (terminatorRef.current) {
@ -839,7 +849,7 @@
mapInstanceRef.current.removeLayer(tileLayerRef.current);
tileLayerRef.current = L.tileLayer(MAP_STYLES[mapStyle].url, {
attribution: MAP_STYLES[mapStyle].attribution,
noWrap: false
noWrap: true
}).addTo(mapInstanceRef.current);
// Ensure terminator is on top

Loading…
Cancel
Save

Powered by TurnKey Linux.