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

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

问题描述

我在使用 admob 和 google maps 插件时遇到了问题.当广告出现时,我的地图一片空白.我认为他们都冲突.但我不知道如何解决它?有人吗?

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?

推荐答案

我相信您使用的是 google-phonegap-maps 插件和 admob-pro,没有什么冲突.当您使用任何其他框架时,需要调整 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,
})

它会完成的.我猜你已经在脸书上承认了.

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

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

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