回答編集履歴
1
微修正
answer
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
おそらくですが、表示のマップの
|
1
|
+
おそらくですが、表示のマップの縮尺を設定していないからではないでしょうか?
|
2
2
|
|
3
3
|
```Swift
|
4
4
|
//現在位置をマップの中心にして登録する。
|
5
5
|
let center = CLLocationCoordinate2DMake(location.coordinate.latitude, location.coordinate.longitude)
|
6
|
-
let span = MKCoordinateSpanMake(0.05, 0.05)
|
6
|
+
let span = MKCoordinateSpanMake(0.05, 0.05) // <-ここの行
|
7
|
-
let region = MKCoordinateRegionMake(center, span)
|
7
|
+
let region = MKCoordinateRegionMake(center, span) // <-ここの行
|
8
|
-
testMapView.setRegion(region, animated:true)
|
8
|
+
testMapView.setRegion(region, animated:true) // <-ここの行
|
9
9
|
```
|
10
10
|
|
11
|
-
の
|
11
|
+
の3行を追加してみて、試してみてはどうでしょうか?
|