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",
|
"mapStyleUrl": "https://tiles.openfreemap.org/styles/liberty",
|
||||||
"mapStyleUrlDark": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",
|
"mapStyleUrlDark": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",
|
||||||
"unifiedPushDefaultDistributor": "io.heckel.ntfy",
|
"unifiedPushDefaultDistributor": "io.heckel.ntfy",
|
||||||
"debugHttp": true
|
"debugHttp": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,6 @@ export function MapScreen() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (mapReady && initialCenter && !positioned.current) {
|
if (mapReady && initialCenter && !positioned.current) {
|
||||||
positioned.current = true;
|
positioned.current = true;
|
||||||
console.log('[CAM] initial-positioning ->', JSON.stringify(initialCenter));
|
|
||||||
cameraRef.current?.setCamera?.({
|
cameraRef.current?.setCamera?.({
|
||||||
centerCoordinate: [initialCenter.longitude, initialCenter.latitude],
|
centerCoordinate: [initialCenter.longitude, initialCenter.latitude],
|
||||||
zoomLevel: initialCenter === DEFAULT_CENTER ? DEFAULT_ZOOM : 14,
|
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).');
|
setStatus('No location fix yet — GPS may be unavailable (e.g. indoors).');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('[CAM] goToMyLocation setCamera ->', JSON.stringify(c));
|
|
||||||
cameraRef.current?.setCamera?.({
|
cameraRef.current?.setCamera?.({
|
||||||
centerCoordinate: [c.longitude, c.latitude],
|
centerCoordinate: [c.longitude, c.latitude],
|
||||||
zoomLevel: 15,
|
zoomLevel: 15,
|
||||||
|
|
@ -150,7 +148,6 @@ export function MapScreen() {
|
||||||
setStatus('No saved location yet — enable location once to cache it.');
|
setStatus('No saved location yet — enable location once to cache it.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('[CAM] searchLastKnown setCamera ->', JSON.stringify(last));
|
|
||||||
cameraRef.current?.setCamera?.({
|
cameraRef.current?.setCamera?.({
|
||||||
centerCoordinate: [last.longitude, last.latitude],
|
centerCoordinate: [last.longitude, last.latitude],
|
||||||
zoomLevel: 15,
|
zoomLevel: 15,
|
||||||
|
|
@ -214,22 +211,13 @@ export function MapScreen() {
|
||||||
style={styles.map}
|
style={styles.map}
|
||||||
mapStyle={mapStyle}
|
mapStyle={mapStyle}
|
||||||
rotateEnabled={false}
|
rotateEnabled={false}
|
||||||
onDidFinishLoadingMap={() => {
|
onDidFinishLoadingMap={() => setMapReady(true)}
|
||||||
console.log('[CAM] onDidFinishLoadingMap (mapReady already', mapReady, ')');
|
|
||||||
setMapReady(true);
|
|
||||||
}}
|
|
||||||
onRegionDidChange={(f: any) => {
|
onRegionDidChange={(f: any) => {
|
||||||
const c = f?.geometry?.coordinates;
|
const c = f?.geometry?.coordinates;
|
||||||
const z = f?.properties?.zoomLevel;
|
const z = f?.properties?.zoomLevel;
|
||||||
if (Array.isArray(c) && c.length === 2) {
|
if (Array.isArray(c) && c.length === 2) {
|
||||||
viewRef.current = { center: [c[0], c[1]], zoom: typeof z === 'number' ? z : 14 };
|
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}
|
{cameraEl}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue