Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

mapView.cameraState.zoom - unexpectedly found nil while unwrapping an optional value #647

Open
dlpgithub opened this issue Feb 21, 2022 · 0 comments

Comments

@dlpgithub
Copy link

Steps to reproduce

no problem when i try to get the value with a location update (1 sec interval)
let currentZoomLevel = mapView.cameraState.zoom
print("ZOOM: (zoom)")
i get an output with the current zoom level every second

but when i try to get the the zoom level with a triggered action i get nil

Expected behavior

Get the current zoom level of the mapview.

Actual behavior

Got nil.

Configuration

Mapbox SDK versions:
maps Using Mapbox Core Maps SDK v10.2.0@f5a8bbfb64 and Mapbox Common SDK v21.0.1

iOS/macOS versions:
15.3.1

Xcode version:
13.2.1

Bildschirmfoto 2022-02-21 um 16 09 37

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant