Skip to content

Commit 2d73534

Browse files
committed
wrote README-ja
1 parent 2b171ab commit 2d73534

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed

README-ja.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
## ![](logo.png) Xamarin.Forms.GoogleMaps
2+
3+
Xamarin.Forms 用の Googleマップライブラリです。
4+
5+
[Xamarin.Forms.Maps](https://github.com/xamarin/Xamarin.Forms) をフォークして作っているので、使い方はほとんど同じです。
6+
7+
### セットアップ
8+
9+
* Available on NuGet: https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/ [![NuGet](https://img.shields.io/nuget/v/Xam.Plugin.Geolocator.svg?label=NuGet)](https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/)
10+
* PCLプロジェクトと各プラットフォームプロジェクトにインストールしてください
11+
12+
### サポートするプラットフォーム
13+
14+
|Platform|Supported|
15+
| ------------------- | :-----------: |
16+
|iOS Classic|No|
17+
|iOS Unified|Yes|
18+
|Android|Yes|
19+
|Windows Phone Silverlight|No|
20+
|Windows Phone RT|No|
21+
|Windows Store RT|No|
22+
|Windows 10 UWP|No|
23+
|Xamarin.Mac|No|
24+
25+
### 使い方
26+
27+
* [Map Control - Xamarin](https://developer.xamarin.com/guides/xamarin-forms/user-interface/map/)
28+
* [Xamarin.Formsで地図を表示するには?(Xamarin.Forms.Maps使用) - Build Insider](http://www.buildinsider.net/mobile/xamarintips/0039)
29+
30+
とほぼ同じです。
31+
初期化メソッドが ``Xamarin.Forms.Maps.Init()`` から ``Xamarin.Forms.GoogleMaps.Init()`` に変更になっています。
32+
33+
iOS の場合、 [Google Maps API for iOS](https://developers.google.com/maps/documentation/ios-sdk/) の API キーを取得し、``AppDelegate.cs`` にて ``Init`` に渡してください。
34+
35+
```csharp
36+
[Register("AppDelegate")]
37+
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
38+
{
39+
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
40+
{
41+
global::Xamarin.Forms.Forms.Init();
42+
Xamarin.FormsGoogleMaps.Init("your_api_key");
43+
LoadApplication(new App());
44+
45+
return base.FinishedLaunching(app, options);
46+
}
47+
}
48+
```
49+
50+
既定の名前空間が ``Xamarin.Forms.Maps`` から ``Xamarin.Forms.GoogleMaps`` に変更されています。他のAPIはすべて同じです。
51+
52+
サンプルプログラムが、
53+
54+
* [XFGoogleMapSample](https://github.com/amay077/Xamarin.Forms.GoogleMaps/tree/master/XFGoogleMapSample)
55+
56+
にあります。
57+
58+
### 今後の予定
59+
60+
なるべく Xamarin.Forms.Maps の API に準じ、Google Maps固有の機能のみ API を追加するつもりです。
61+
62+
機能要望は、 [@amay077](https://twitter.com/amay077) または、ISSUE やプルリクください!
63+
追加機能案は以下の通りです。
64+
65+
* Pin の InfoWindow の Visible プロパティ
66+
* Pin のタップ&ホールドによる移動
67+
* Polygon, Polyline, Circle の描画サポート
68+
* etc..
69+
70+
### ライセンス
71+
72+
[LICENSE](LICENSE.md) をみて下さい
73+
74+
logo.png by [alecive](http://www.iconarchive.com/show/flatwoken-icons-by-alecive.html) - [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/deed)

logo.png

15.7 KB
Loading

0 commit comments

Comments
 (0)