ionic-team / ionic-team/ionic-native-google-maps

Error: DIV[#map_canvas] is too small. Must be bigger than 100x100

未关闭
#367 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
215
派生
119
PR 合并指标
30 天内没有已合并 PR

描述

**I'm submitting a ...** (check one with "x")
- [ ] question
- [x] any problem or bug report
- [ ] feature request

**If you choose 'problem or bug report', please select OS:** (check one with "x")
- [x] **Android**
- [x] **iOS**
- [ ] **Browser**

**cordova information:** (run `$> cordova plugin list`)

com.googlemaps.ios 3.9.0 "Google Maps SDK for iOS"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-advanced-http 3.1.0 "Advanced HTTP plugin"
cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter"
cordova-plugin-androidx 3.0.0 "cordova-plugin-androidx"
cordova-plugin-app-version 0.1.12 "AppVersion"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-email-composer 0.9.2 "EmailComposer"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-googlemaps 2.7.1 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 4.1.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-market 1.2.0 "Market"
cordova-plugin-nativegeocoder 3.4.1 "NativeGeocoder"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.5 "Launch Navigator"

**If you use `@ionic-native/google-maps`, please tell the package.json (only `@ionic-native/core` and `@ionic-native/google-maps` are fine mostly)**
"@ionic-native/core": "^5.30.0",
"@ionic-native/google-maps": "^5.5.0",

**Current behavior:**

I get sometimes in production the error: Error: DIV[#map_canvas] is too small. Must be bigger than 100x100.

I don't know when it happens.

**Expected behavior:**
No error
**Screen capture or video record:**
no

**Related code, data or error log (please format your code or data):**
Here my html and css implementation:


#map_canvas
{
display: table-row; height: 100%;
width: 100%;
}

贡献指南

打开贡献指南

调研方向

Start with the reported HTML and CSS for #map_canvas, along with the listed cordova-plugin-googlemaps and @ionic-native/google-maps versions. Investigate when the production layout leaves the map below 100x100, using the intermittent error and platform details to reproduce it; done means the error no longer occurs when the map is rendered.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
mobile-dev
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。