{"id":291,"date":"2016-09-30T07:19:16","date_gmt":"2016-09-29T22:19:16","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=291"},"modified":"2016-12-11T10:40:59","modified_gmt":"2016-12-11T01:40:59","slug":"swift-googlemapsdk%e3%81%ae%e3%83%9e%e3%83%bc%e3%82%ab%e3%83%bc%e3%82%92%e5%85%a8%e9%83%a8%e8%a1%a8%e7%a4%ba%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%82%ba%e3%83%bc%e3%83%a0%e3%82%a2","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/swift-googlemapsdk%e3%81%ae%e3%83%9e%e3%83%bc%e3%82%ab%e3%83%bc%e3%82%92%e5%85%a8%e9%83%a8%e8%a1%a8%e7%a4%ba%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%82%ba%e3%83%bc%e3%83%a0%e3%82%a2\/","title":{"rendered":"[swift] GoogleMapSDK\u306e\u30de\u30fc\u30ab\u30fc\u3092\u5168\u90e8\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u30ba\u30fc\u30e0\u30a2\u30a6\u30c8"},"content":{"rendered":"<h2>GoogleMapSDK\u306e\u30de\u30fc\u30ab\u30fc\u3092\u5168\u90e8\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u30ba\u30fc\u30e0\u30a2\u30a6\u30c8<\/h2>\n<p>GoogleMapSDK\u306e\u30de\u30fc\u30ab\u30fc\u3092\u5168\u90e8\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u30ba\u30fc\u30e0\u30a2\u30a6\u30c8\u3057\u305f\u3044\u6642\u306f\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0<\/p>\n<p>Android\u7248\u3067\u306f\u4ee5\u4e0b\u3092\u53c2\u7167<br \/>\n<a href=\"http:\/\/blue-bear.jp\/kb\/android-googlemapsdk%e3%81%ae%e3%83%9e%e3%83%bc%e3%82%ab%e3%83%bc%e3%82%92%e5%85%a8%e9%83%a8%e8%a1%a8%e7%a4%ba%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%82%ba%e3%83%bc%e3%83%a0%e3%82%a2\/\">[android] GoogleMapSDK\u306e\u30de\u30fc\u30ab\u30fc\u3092\u5168\u90e8\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u30ba\u30fc\u30e0\u30a2\u30a6\u30c8<\/a><\/p>\n<h3>\u30de\u30fc\u30ab\u30fc\u60c5\u5831\u3092\u307e\u3068\u3081\u308b\u914d\u5217\u3092\u6e96\u5099<\/h3>\n<pre>\r\nvar markerList = [GMSMarker]()\r\n<\/pre>\n<h3>\u30de\u30fc\u30ab\u30fc\u3092\u8ffd\u52a0<\/h3>\n<pre>\r\nlet marker: GMSMarker = GMSMarker()\r\nmarker.position = CLLocationCoordinate2DMake(latitude, longitude)\r\nmarker.map = _mapview\r\nmarkerList.append(marker) \/\/\u5168\u4f53\u8868\u793a\u306e\u6642\u306emarkerList\u306b\u8ffd\u52a0\r\n<\/pre>\n<h3>\u5168\u4f53\u8868\u793a\u3059\u308bIBAction\u3092\u5b9f\u88c5<\/h3>\n<pre>\r\n@IBAction func wholeMarkerDisplay(){\r\n        var bounds = GMSCoordinateBounds()\r\n        \r\n        for marker in markerList {\r\n            bounds = bounds.includingCoordinate(marker.position)\r\n        }\r\n        \r\n        let padding = UIEdgeInsets(top: 100, left: 30, bottom: 100, right: 30) \/\/\u4e0a100,\u5de630,\u4e0b100,\u53f330\u306e\u30d1\u30c7\u30a3\u30f3\u30b0\u3092\u6307\u5b9a\r\n        _mapView.animateWithCameraUpdate(GMSCameraUpdate.fitBounds(bounds, withEdgeInsets: padding))\r\n        \r\n    }\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GoogleMapSDK\u306e\u30de\u30fc\u30ab\u30fc\u3092\u5168\u90e8<\/p>\n","protected":false},"author":1,"featured_media":88,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/291"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=291"}],"version-history":[{"count":4,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/291\/revisions"}],"predecessor-version":[{"id":611,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/291\/revisions\/611"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/88"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}