fix the longitude exceeds 180 degrees when selecting a new geographic location by user

This commit is contained in:
MaysWind
2025-05-26 01:01:07 +08:00
parent 817291c9a7
commit adfd12ef52
+2 -1
View File
@@ -97,7 +97,8 @@ export class LeafletMapInstance implements MapInstance {
center: [ options.initCenter.latitude, options.initCenter.longitude ], center: [ options.initCenter.latitude, options.initCenter.longitude ],
zoom: options.zoomLevel, zoom: options.zoomLevel,
attributionControl: false, attributionControl: false,
zoomControl: false zoomControl: false,
worldCopyJump: true
}); });
let tileUrlFormat, tileUrlSubDomains, annotationUrlFormat, annotationUrlSubDomains: string | undefined; let tileUrlFormat, tileUrlSubDomains, annotationUrlFormat, annotationUrlSubDomains: string | undefined;