Cordova CLI,Admob和Google地图插件冲突 [英] Cordova CLI, Admob and Google Maps plugins conflict

查看:223
本文介绍了Cordova CLI,Admob和Google地图插件冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有admob和google地图插件的麻烦。当广告展示时,我的地图会留空。我认为他们都冲突。但我不知道如何解决呢?任何人?

i have trouble with admob and google maps plugins. When the ads appear, my maps blank. i think they both conflict. But i dont know how to solve it? Anyone?

推荐答案

Nothings是冲突的,因为我相信你使用google-phonegap- maps插件和admob-
当您使用任何其他框架时,Google-phonegap-map插件需要进行调整。因为它在本机视图上运行。如果你把背景颜色到任何DOM元素它可能反映在你的地图上。 Admob横幅我猜应用一些背景(我不能准确地以什么方式取出),但它是。所以我想出的工作是重叠你的横幅,它会解决。

Nothings is conflicting as I believe you are using google-phonegap-maps plugin and admob-pro. Google-phonegap-map plugins needs to be tweaked when your working with any other framework. As it is running on Native View. If you put Background color to any DOM element It may reflect on your Map. Admob banner I guess applies some background (I couldn't exactly fetch out in what manner), But It does. So the work around I have came up with is to Overlap your banner and it will be solved.

admob.createBanner({
           /*parameter stuff, set one more parameter*/
            overlap : true,
})

就可以了。
我猜你已经在Facebook上认可了。

and it will be done. I guess you have already acknowledged on facebook.

这篇关于Cordova CLI,Admob和Google地图插件冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆