@@ -18,7 +18,7 @@ Let's say you'd like to show a snapshot of San Francisco. All you need are the
18
18
<div class = " code " >
19
19
<pre lang =" objc " class =" objcCode " >
20
20
ASMapNode *mapNode = [[ASMapNode alloc] init];
21
- mapNode.preferredFrameSize = CGSizeMake(300.0, 300.0);
21
+ mapNode.style.preferredSize = CGSizeMake(300.0, 300.0);
22
22
23
23
// San Francisco
24
24
CLLocationCoordinate2D coord = CLLocationCoordinate2DMake(37.7749, -122.4194);
@@ -29,7 +29,7 @@ mapNode.region = MKCoordinateRegionMakeWithDistance(coord, 20000, 20000);
29
29
30
30
<pre lang =" swift " class = " swiftCode hidden " >
31
31
let mapNode = ASMapNode()
32
- mapNode.preferredFrameSize = CGSize(width: 300.0, height: 300.0)
32
+ mapNode.style.preferredSize = CGSize(width: 300.0, height: 300.0)
33
33
34
34
// San Francisco
35
35
let coord = CLLocationCoordinate2DMake(37.7749, -122.4194)
@@ -71,7 +71,7 @@ mapNode.options = options;
71
71
</pre >
72
72
<pre lang =" swift " class = " swiftCode hidden " >
73
73
let options = MKMapSnapshotOptions()
74
- options.mapType = .Satellite
74
+ options.mapType = .satellite
75
75
options.region = MKCoordinateRegionMakeWithDistance(coord, 20000, 20000)
76
76
77
77
mapNode.options = options
0 commit comments