Skip to content

Add map zoom in button to main screen - #17

Draft
anamhira47 wants to merge 3 commits into
mainfrom
cursor/r-dc81182a4660-create-a-map-zoom-in-button-atlas-contex-936013-9833
Draft

Add map zoom in button to main screen#17
anamhira47 wants to merge 3 commits into
mainfrom
cursor/r-dc81182a4660-create-a-map-zoom-in-button-atlas-contex-936013-9833

Conversation

@anamhira47

Copy link
Copy Markdown

Summary

Adds a floating Zoom in control to the main parking map on ContentView. The button sits below the header on the trailing edge and matches the existing circular map chrome (ultra-thin material, stroke, shadow).

Tapping the button halves the visible map span around the current center. The visible region is tracked with onMapCameraChange so pinch gestures and programmatic camera moves stay in sync with button zoom.

Changes

  • New mapZoomInButton overlay on the main map screen
  • visibleMapRegion state + onMapCameraChange to track the current viewport
  • zoomIn() and zoomedInRegion(from:) helpers with a minimum span clamp

Device verification

Revyl remote build + device instruction on context ios-native:

  • Result: Instruction step success
  • Assertion: Main map shows the circular zoom-in button (plus.magnifyingglass) below the header on the right; tapping it zooms the map closer to the current center.

Before

Main map before tapping zoom in

After

Main map after tapping zoom in

Accessibility

  • Label: Zoom in
  • Identifier: map-zoom-in-button

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 3 commits July 1, 2026 20:04
Introduce a floating zoom-in control on the parking map that halves the
visible region span while keeping the current center. Track the visible
region via onMapCameraChange so pinch gestures and programmatic moves stay
in sync with button zoom.

Co-authored-by: Anam Hira <anam@revyl.ai>
Co-authored-by: Anam Hira <anam@revyl.ai>
Check in the shared Xcode build settings and SweepAlert Swift app ID so
Revyl dev loops can start without interactive init.

Co-authored-by: Anam Hira <anam@revyl.ai>
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.

2 participants