ionic-framework - Ionic5 上的 GoogleMaps 弄乱了滑动模式
问题描述
解决方案
我解决了这个问题。解决方案非常简单。背景颜色可以Environment
在 GoogleMaps 的类上设置。
确保Environment
在您的组件上导入并执行以下操作:
// If you're following the documentation, there should be more things imported here, because I'm focusing on the Environment, I will only use this one.
import { Environment } from '@ionic-native/google-maps/ngx';
ngOninit() {
Environment.setBackgroundColor('black'); // Or whatever color you want.
}
而已!这是供参考的文档链接:
https://github.com/ionic-team/ionic-native-google-maps/blob/master/documents/environment/README.md
推荐阅读
- python - 使用 Python 通过唯一字符和末尾的空行将文本文件拆分为块
- latex - 如何在 Latex 中用圆形符号编写除法
- c# - 使用 ForEach 循环遍历反序列化的 XML 循环错误
- python - Python/Flask - 如果 x in y 不返回 true
- python - Optuna lightgbm 集成给出分类特征错误
- flutter - Flutter - 如何将“开关”转换为“凸起按钮”(推送通知)?
- python - Python OpenCV 问题从验证码中去除不需要的噪音
- c - 尝试用 const 替换 #define 确实有效
- angular - 关于角垫工具栏
- kotlin - 为什么盒装的 Int 在比较时显示出意外的行为?