在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:amay077/Xamarin.Forms.GoogleMaps开源软件地址:https://github.com/amay077/Xamarin.Forms.GoogleMaps开源编程语言:C# 91.6%开源软件介绍:Xamarin.Forms.GoogleMapsYet another maps library for Xamarin.Forms that optimized for Google maps. Usage is almost the same as Xamarin.Forms.Maps, Because this is forked from Xamarin.Forms.Maps - github DEMO AppsYou can try DEMO Apps for Android/iOS that includes all this library features. DEMO Apps source code is here.
MotivationThe official Xamarin.Forms.Map has minumn functions only. Especially, Bing Maps SDK is very old-fashioned because it has not vector-tile, marker's infowindow. Android and iOS monopolize most the mobile apps market. Thus I think no need Bing maps support. Furthermore, I am using Google Maps instead of MapKit because it is easy for define common API for Android and iOS. Xamarin.Forms.GoogleMaps provides maximum Google maps features for Xamarin.Forms!! Comparison with Xamarin.Forms.Maps
For more information, see Comparison with Xamarin.Forms.Maps. Setup
Platform Support
UsageSame as this In iOS, get the API Key from Google Maps API for iOS then insert // AppDelegate.cs
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
Xamarin.FormsGoogleMaps.Init("your_google_maps_ios_api_key");
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
} In UWP, you should add Xamarin.Forms.GoogleMaps.UWP.dll to rendererAssemblies with // App.xaml.cs
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
Frame rootFrame = Window.Current.Content as Frame;
if (rootFrame == null)
{
rootFrame = new Frame();
rootFrame.NavigationFailed += OnNavigationFailed;
// Should add UWP side assembly to rendererAssemblies
var rendererAssemblies = new []
{
typeof(Xamarin.Forms.GoogleMaps.UWP.MapRenderer).GetTypeInfo().Assembly
};
Xamarin.Forms.Forms.Init(e, rendererAssemblies);
Xamarin.FormsGoogleMaps.Init("your_bing_maps_api_key");
Window.Current.Content = rootFrame;
}
if (rootFrame.Content == null)
{
rootFrame.Navigate(typeof(MainPage), e.Arguments);
}
Window.Current.Activate();
} Namespace is Sample application is here. Who uses it?This is just a short list of apps and projects that use Xamarin.Forms.GoogleMaps. If you've used Xamarin.Forms.GoogleMaps in a apps and would like it listed on this page, Please report it.
ReleasesSee Releases or RELEASE_NOTES. Future plansI will follow Xamarin.Forms.Maps API as possible. I will add new API only when I implement Google maps original feature. If you have proposals then send to @amay077 or submit ISSUE or Pull-request! Latest scheduled features as follows:
You can use in Windows 10 UWP but this support is reluctant. Because this library has been determined to optimized for Google Maps, New features will not support in UWP. ContributionWe really appreciate your contribution. Please read the contribution guideline. Commmunity ChatYou can join to out gitter room! DonationI will continue to work hard with your support! Donate through Gumroad. If this project help you reduce time to develop, you can give me a |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论