Remove [CAM] debug logging; default HTTP request logging off
Camera recenter-on-search confirmed fixed (view-lock). Strip the temporary trace logs; keep viewport tracking (needed for the fix). HTTP request logging now defaults off — still toggleable in Account > Log requests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
7321453337
commit
a566f41d66
2 changed files with 2 additions and 14 deletions
|
|
@ -46,7 +46,7 @@
|
|||
"mapStyleUrl": "https://tiles.openfreemap.org/styles/liberty",
|
||||
"mapStyleUrlDark": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",
|
||||
"unifiedPushDefaultDistributor": "io.heckel.ntfy",
|
||||
"debugHttp": true
|
||||
"debugHttp": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ export function MapScreen() {
|
|||
useEffect(() => {
|
||||
if (mapReady && initialCenter && !positioned.current) {
|
||||
positioned.current = true;
|
||||
console.log('[CAM] initial-positioning ->', JSON.stringify(initialCenter));
|
||||
cameraRef.current?.setCamera?.({
|
||||
centerCoordinate: [initialCenter.longitude, initialCenter.latitude],
|
||||
zoomLevel: initialCenter === DEFAULT_CENTER ? DEFAULT_ZOOM : 14,
|
||||
|
|
@ -135,7 +134,6 @@ export function MapScreen() {
|
|||
setStatus('No location fix yet — GPS may be unavailable (e.g. indoors).');
|
||||
return;
|
||||
}
|
||||
console.log('[CAM] goToMyLocation setCamera ->', JSON.stringify(c));
|
||||
cameraRef.current?.setCamera?.({
|
||||
centerCoordinate: [c.longitude, c.latitude],
|
||||
zoomLevel: 15,
|
||||
|
|
@ -150,7 +148,6 @@ export function MapScreen() {
|
|||
setStatus('No saved location yet — enable location once to cache it.');
|
||||
return;
|
||||
}
|
||||
console.log('[CAM] searchLastKnown setCamera ->', JSON.stringify(last));
|
||||
cameraRef.current?.setCamera?.({
|
||||
centerCoordinate: [last.longitude, last.latitude],
|
||||
zoomLevel: 15,
|
||||
|
|
@ -214,22 +211,13 @@ export function MapScreen() {
|
|||
style={styles.map}
|
||||
mapStyle={mapStyle}
|
||||
rotateEnabled={false}
|
||||
onDidFinishLoadingMap={() => {
|
||||
console.log('[CAM] onDidFinishLoadingMap (mapReady already', mapReady, ')');
|
||||
setMapReady(true);
|
||||
}}
|
||||
onDidFinishLoadingMap={() => setMapReady(true)}
|
||||
onRegionDidChange={(f: any) => {
|
||||
const c = f?.geometry?.coordinates;
|
||||
const z = f?.properties?.zoomLevel;
|
||||
if (Array.isArray(c) && c.length === 2) {
|
||||
viewRef.current = { center: [c[0], c[1]], zoom: typeof z === 'number' ? z : 14 };
|
||||
}
|
||||
console.log(
|
||||
'[CAM] regionDidChange center=',
|
||||
JSON.stringify(c),
|
||||
'ui=',
|
||||
f?.properties?.isUserInteraction,
|
||||
);
|
||||
}}
|
||||
>
|
||||
{cameraEl}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue