{"id":200,"date":"2018-11-30T00:40:05","date_gmt":"2018-11-29T15:40:05","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=200"},"modified":"2018-12-08T21:51:44","modified_gmt":"2018-12-08T12:51:44","slug":"googlemap%e3%81%ae%e4%bb%bb%e6%84%8f%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%81%ab%e3%83%9e%e3%83%bc%e3%82%ab%e3%83%bc%e3%82%92%e7%ab%8b%e3%81%a6%e3%82%8b","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2018\/11\/30\/200\/","title":{"rendered":"GoogleMap\u306e\u4efb\u610f\u306e\u4f4d\u7f6e\u306b\u30de\u30fc\u30ab\u30fc\u3092\u7acb\u3066\u308b"},"content":{"rendered":"<h2>\u5730\u56f3\u3092\u8868\u793a\u3055\u305b\u308b\u305e<\/h2>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/Ju1KGsCra8k\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u2026\u3068\u601d\u3063\u3066\u3082\u305d\u3082\u305d\u3084\u3063\u3066\u3044\u305f\u306e\u3060\u3051\u308c\u3069\u3001\u9014\u4e2d\u306e\u30b3\u30fc\u30c9\u6b8b\u3057\u3068\u304f\u306e\u5fd8\u308c\u305f\u3002\u3068\u308a\u3042\u3048\u305a\u6700\u7d42\u7684\u306a\u3084\u3064\u3002<\/p>\n<pre>public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {\r\n\r\n    private GoogleMap mMap;\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_maps);\r\n        \/\/ Obtain the SupportMapFragment and get notified when the map is ready to be used.\r\n        SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\r\n                .findFragmentById(R.id.map);\r\n        mapFragment.getMapAsync(this);\r\n    }\r\n\r\n\r\n    \/**\r\n     * Manipulates the map once available.\r\n     * This callback is triggered when the map is ready to be used.\r\n     * This is where we can add markers or lines, add listeners or move the camera. In this case,\r\n     * we just add a marker near Sydney, Australia.\r\n     * If Google Play services is not installed on the device, the user will be prompted to install\r\n     * it inside the SupportMapFragment. This method will only be triggered once the user has\r\n     * installed Google Play services and returned to the app.\r\n     *\/\r\n    @Override\r\n    public void onMapReady(GoogleMap googleMap) {\r\n        mMap = googleMap;\r\n\r\n        LatLng fuji = new LatLng(35.362859,138.730883);\r\n\r\n        BitmapDescriptor iconSanta = BitmapDescriptorFactory.fromResource(R.drawable.christmas_santa_sori_s);\r\n        MarkerOptions option = new MarkerOptions();\r\n        option.icon(iconSanta).position(fuji);\r\n        mMap.addMarker(option);\r\n        mMap.moveCamera(CameraUpdateFactory.newLatLng(fuji));\r\n    }\r\n}<\/pre>\n<p>\u3081\u3061\u3083\u3081\u3061\u3083\u7c21\u5358\u306a\u3093\u3060\u306a\u3041\u3002\u3064\u3044\u3067\u306b\u30de\u30fc\u30ab\u30fc\u306e\u753b\u50cf\u3082\u5909\u3048\u3066\u307f\u305f\u3002<\/p>\n<h3>\u53c2\u8003<\/h3>\n<p><a href=\"https:\/\/developers.google.com\/maps\/documentation\/android-sdk\/start\">https:\/\/developers.google.com\/maps\/documentation\/android-sdk\/start<\/a><\/p>\n<p><a href=\"https:\/\/developers.google.com\/android\/reference\/com\/google\/android\/gms\/maps\/model\/MarkerOptions\">https:\/\/developers.google.com\/android\/reference\/com\/google\/android\/gms\/maps\/model\/MarkerOptions<\/a><\/p>\n<p><a href=\"https:\/\/seesaawiki.jp\/w\/moonlight_aska\/d\/%A5%DE%A1%BC%A5%AB%A1%BC%A4%F2%A5%AB%A5%B9%A5%BF%A5%DE%A5%A4%A5%BA%A4%B9%A4%EB\">https:\/\/seesaawiki.jp\/w\/moonlight_aska\/d\/%A5%DE%A1%BC%A5%AB%A1%BC%A4%F2%A5%AB%A5%B9%A5%BF%A5%DE%A5%A4%A5%BA%A4%B9%A4%EB<\/a><\/p>\n<p><a href=\"https:\/\/www.irasutoya.com\/2012\/10\/blog-post_24.html\">https:\/\/www.irasutoya.com\/2012\/10\/blog-post_24.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5730\u56f3\u3092\u8868\u793a\u3055\u305b\u308b\u305e \u2026\u3068\u601d\u3063\u3066\u3082\u305d\u3082\u305d\u3084\u3063\u3066\u3044\u305f\u306e\u3060\u3051\u308c\u3069\u3001\u9014\u4e2d\u306e\u30b3\u30fc\u30c9\u6b8b\u3057\u3068\u304f\u306e\u5fd8\u308c\u305f\u3002\u3068\u308a\u3042\u3048\u305a\u6700\u7d42\u7684\u306a\u3084\u3064\u3002 public class MapsActivity extends FragmentActivity i &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2018\/11\/30\/200\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[9],"tags":[3,6,17,4,24,16],"class_list":["post-200","post","type-post","status-publish","format-standard","hentry","category-9","tag-android","tag-androidstudio","tag-googlemap","tag-4","tag-24","tag-16"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=200"}],"version-history":[{"count":2,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/200\/revisions"}],"predecessor-version":[{"id":202,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/200\/revisions\/202"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}