简体   繁体   English

Xamarin.Forms.Maps 与 Xamarin.GooglePlayServices.Maps

[英]Xamarin.Forms.Maps vs Xamarin.GooglePlayServices.Maps

I'm learning Xamarin and I noticed there are two ways of implementing maps, both have official documentation on MS docs pages.我正在学习 Xamarin,我注意到有两种实现地图的方法,两者在 MS 文档页面上都有官方文档。

I couldn't find any information on what is the difference between both approaches.我找不到任何关于这两种方法有什么区别的信息。 Which one should I use?我应该使用哪一个?

Xamarin.GooglePlayServices.Maps is how you would add maps to a Xamarin.Android App, when not using Xamarin.Forms. Xamarin.GooglePlayServices.Maps是在使用 Xamarin.Forms 时将地图添加到 Xamarin.Android 应用程序的方式。

If you look at the Xamarin.Forms.Maps the list of dependencies for Xamarin.Android contains Xamarin.GooglePlayServices.Maps .如果您查看Xamarin.Forms.Maps ,Xamarin.Android 的依赖项列表包含Xamarin.GooglePlayServices.Maps

What Xamarin.Forms.Maps does is to abstract Google Maps to be used from a Xamarin.Forms App. Xamarin.Forms.Maps所做的是从 Xamarin.Forms 应用程序中提取要使用的 Google 地图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM