简体   繁体   English

xamarin.forms.maps 对 bing 地图 v8 的本机支持

[英]xamarin.forms.maps native support for bing maps v8

Are there plans by the xamarin team to make the FormsMaps natively support bing maps v8 api on all platforms? xamarin 团队是否有计划让 FormsMaps 在所有平台上原生支持 bing maps v8 api? I'm starting a new development project and am considering xamarin FormsMaps as a core code base, but I need to use the new Bing Maps V8 APIs for ios, android, uwa, and wp.我正在开始一个新的开发项目,并考虑将 xamarin FormsMaps 作为核心代码库,但我需要使用适用于 ios、android、uwa 和 wp 的新 Bing Maps V8 API。

In looking at the forms.map documentation on xamarin, it appears to only support google maps APIs and requires google map api keys.在查看有关 xamarin 的 forms.map 文档时,它似乎只支持谷歌地图 API 并需要谷歌地图 API 密钥。 I understand that the windows phone will automatically use bing maps natively and that you could force the other platforms to register and use bing maps.据我所知,windows 手机将自动在本机使用 bing 地图,您可以强制其他平台注册和使用 bing 地图。 What I'm asking is if there are plans to be able to decide which mapping api you want to use for the CPL and have it apply natively to IOS, Android, WP8 and UWP?我要问的是,是否有计划能够决定您要为 CPL 使用哪个映射 api 并将其本地应用到 IOS、Android、WP8 和 UWP? Or will this always be a manual process?或者这将始终是一个手动过程?

I'm especially curious about this, given that Microsoft now owns Xamarin.鉴于 Microsoft 现在拥有 Xamarin,我对此特别好奇。 Does anyone know the plans for Bing Maps V8 integration and is there any documentation anywhere on this?有谁知道 Bing Maps V8 集成的计划,是否有任何相关文档?

Glad to see you are interested in using V8 in your mobile app.很高兴看到您有兴趣在您的移动应用中使用 V8。 Many have used the Bing Maps web controls in mobile apps before.许多人以前在移动应用程序中使用过 Bing 地图 Web 控件。 Note that Xamarin wraps native API's and uses what ever the default maps are on the device.请注意,Xamarin 包装本机 API 并使用设备上的默认映射。 V8 is a web control, so it is unlikely that the Xamarin team will wrap the V8 web control. V8 是一个 Web 控件,因此 Xamarin 团队不太可能将 V8 Web 控件包装起来。 You can however use V8 in your Xamarin app by hosting it in a web browser/view control.但是,您可以通过将 V8 托管在 Web 浏览器/视图控件中来在 Xamarin 应用程序中使用它。 https://github.com/XLabs/Xamarin-Forms-Labs/wiki/HybridWebView You then create the mapping functionality you need using JavaScript and then display it in the webview control. https://github.com/XLabs/Xamarin-Forms-Labs/wiki/HybridWebView然后使用 JavaScript 创建所需的映射功能,然后将其显示在 webview 控件中。 You can also connect your native code to JavaScript by injecting JavaScript commands into the webview.您还可以通过将 JavaScript 命令注入 webview 来将您的本机代码连接到 JavaScript。

It is possible that Xamarin may use Bing Maps in the future. Xamarin 将来可能会使用 Bing 地图。 If it does, it would do so using a native control and not a web control.如果是这样,它将使用本机控件而不是 Web 控件来实现。

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

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