简体   繁体   English

如何使用 Xamarin.Forms.Maps 在 iOS 上使用 Google 地图?

[英]How to use Google Maps on iOS using Xamarin.Forms.Maps?

I'm trying to use Google Maps on iOS in my Xamarin.Forms app using the Xamarin.Forms.Maps nuget package instead of iOS Maps. I'm trying to use Google Maps on iOS in my Xamarin.Forms app using the Xamarin.Forms.Maps nuget package instead of iOS Maps.

I've tried using the Xamarin.Forms.GoogleMaps and Xamarin.Forms.GoogleMaps.V2 but to no avail, it kept breaking things I don't know if it doesn't work with the current versions of Xamarin.Forms 5.0 or something but I even tried with brand new projects and it kept breaking the compilation with the gcc compiler after doing the setup following various tutorials such as https://nerd-corner.com/how-to-integrate-google-maps-in-an-app-with-xamarin/ or the Xamarin.Forms Google Maps course on Pluralsight but nothing worked. I've tried using the Xamarin.Forms.GoogleMaps and Xamarin.Forms.GoogleMaps.V2 but to no avail, it kept breaking things I don't know if it doesn't work with the current versions of Xamarin.Forms 5.0 or something但是我什至尝试了全新的项目,并且在按照各种教程(例如https://nerd-corner.com/how-to-integrate-google-maps-in-an -app-with-xamarin/或 Xamarin.Forms Pluralsight 上的 Google 地图课程,但没有任何效果。

So I started using Xamarin.Forms.Maps and everything works but I'm trying to use Google Maps on iOS instead of Maps.所以我开始使用 Xamarin.Forms.Maps 并且一切正常,但我试图在 iOS 上使用谷歌地图而不是地图。

I've looked all over the internet for it but it seems there's only hacks available ( such as the app will use Google Maps if it is installed on the device otherwise it will use Maps ) and I can't risk using hacks.我已经在整个互联网上寻找它,但似乎只有黑客可用(例如,如果应用程序安装在设备上,它将使用谷歌地图,否则它将使用地图),我不能冒险使用黑客。

Thank you for your help !谢谢您的帮助 !

Anyone else can help?还有人可以帮忙吗? Is there any hacks we can do to get Google Maps on iOS without using Xamarin.Forms.GoogleMaps as this package seems to not work with the new versions on Xamarin? Is there any hacks we can do to get Google Maps on iOS without using Xamarin.Forms.GoogleMaps as this package seems to not work with the new versions on Xamarin?

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

相关问题 有没有办法在 iOS 项目上禁用 xamarin.forms.maps 上的信息窗口? - Is there a way to disable info window on xamarin.forms.maps on iOS project? 如何在 xamarin.forms.maps (iOS) 中的标签上设置背景颜色和更改字体颜色? - How to set background color and change font color on Label in xamarin.forms.maps (iOS)? 如何在 xamarin.forms.maps iOS c# 中单击时更改图钉图标 - How to change pin icon on click in xamarin.forms.maps iOS c# 如何在 Xamarin.Forms.Maps 中自定义 MkMapView 标注/视图 - How to customize a MkMapView Callout/View in Xamarin.Forms.Maps 如何在 Android 中更改带有图标的 xamarin.forms.maps 标记 - How change xamarin.forms.maps marker with icon in Android 在Xamarin.Forms.Maps上添加图钉 - Add pin on click Xamarin.Forms.Maps 如何使用 xamarin.forms.maps android 将数据库中的数据添加到引脚 - How to add data from database into pins using xamarin.forms.maps android 使用 Xamarin.Forms.Maps 上 Xamarin.Forms21920411ZCBD85089 - Weird problem getting device's location with Xamarin.Essentials Geolocation in Xamarin.Forms.Maps on iOS Xamarin.Forms.Maps 2.3.4自定义MapRenderer禁用所有内容 - Xamarin.Forms.Maps 2.3.4 custom MapRenderer disables everything 在 Xamarin.Forms.Maps 中更改缩放按钮 (+-) 的位置 - change the location of zoom buttons (+-) in Xamarin.Forms.Maps
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM