Skip to content

Commit

Permalink
Fix crash in Examples (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
macdrevx authored Sep 29, 2021
1 parent 167cc03 commit 312a5f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class OfflineRegionManagerExample: UIViewController, ExampleProtocol {
internal func setupExample() {
let uriString = mapView.mapboxMap.style.uri!.rawValue
let offlineRegionDef = OfflineRegionGeometryDefinition(styleURL: uriString,
geometry: MapboxCommon.Geometry(point: coord as NSValue),
geometry: MapboxCommon.Geometry(point: CGPoint(x: coord.latitude, y: coord.longitude) as NSValue),
minZoom: zoom - 2,
maxZoom: zoom + 2,
pixelRatio: Float(UIScreen.main.scale),
Expand Down

0 comments on commit 312a5f9

Please sign in to comment.