File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ StaticMap(
5454
5555``` swift
5656StaticMap (
57- center : . init ( latitude : 51.495 , longitude : 0 ) ,
57+ zoom : 5 ,
5858 annotations : [
59- .pin (coords : .init (latitude : 51.496 , longitude : -0.002 )).label (" This is a label " ),
60- .pin (coords : .init (latitude : 51.494 , longitude : -0.001 )).label (" This is another " ),
59+ .pin (coords : .init (latitude : 53 , longitude : -7 )).label (" Ireland " ),
60+ .pin (coords : .init (latitude : 51.5 , longitude : -2 )).label (" Britain " ),
6161 ]
6262)
6363```
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ guard CommandLine.argc == 2 else {
1010let outputPath = CommandLine . arguments [ 1 ]
1111
1212let staticMap = StaticMap (
13- center : . init ( latitude : 51.495 , longitude : 0 ) ,
13+ zoom : 5 ,
1414 annotations: [
15- . pin( coords: . init( latitude: 51.496 , longitude: - 0.002 ) ) . label ( " This is a label " ) ,
16- . pin( coords: . init( latitude: 51.494 , longitude: - 0.001 ) ) . label ( " This is another " ) ,
15+ . pin( coords: . init( latitude: 53 , longitude: - 7 ) ) . label ( " Ireland " ) ,
16+ . pin( coords: . init( latitude: 51.5 , longitude: - 2 ) ) . label ( " Britain " ) ,
1717 ]
1818)
1919let image = try await staticMap. render ( )
You can’t perform that action at this time.
0 commit comments