(6) デフォルトのマーカー // (6) デフォルトのマーカー GMSMarker *yodobashiMarker = [[GMSMarker alloc] init]; yodobashiMarker.title = @"ヨドバシAkiba"; yodobashiMarker.snippet = @"千代田区神田花岡町1−1"; yodobashiMarker.position = CLLocationCoordinate2DMake(35.698852, 139.774761); yodobashiMarker.map = self.mapView; yodobashiMarker.userData = [NSNumber numberWithInteger:markerIdYodobashi]; positionプロパティに座標を、mapプロパティにGMSMapViewを指定する
![[iOS] Google Maps SDK for iOS を使ってみる – GMSMapViewとGMSMarkerの基本 | DevelopersIO](https://cdn-ak-scissors.b.st-hatena.com/image/square/6f1fde3cff7767965729d2d96d3e31da5b8a643d/height=288;version=1;width=512/https%3A%2F%2Fdevio2023-media.developers.io%2Fwp-content%2Fuploads%2F2018%2F11%2Feyecatch_developers.io_1200x630.jpeg)