NativeScript / NativeScript/plugins
[@nativescript/google-maps] No markers appeared on Android
還沒有人認領這個 Issue。
- 主要語言
- TypeScript
- 星號
- 206
- 分支
- 123
- 平均合併
- 2 天 1 小時
- 30 天內合併 PR
- 1
描述
I'm trying to populate markers for every coordinates in the map. It was working on iOS but not on Android
Only one marker appears on Android
ns info:
✔ Getting NativeScript components versions information...
✔ Component nativescript has 8.3.3 version and is up to date.
✔ Component @nativescript/core has 8.3.5 version and is up to date.
✔ Component @nativescript/ios has 8.3.3 version and is up to date.
✔ Component @nativescript/android has 8.3.1 version and is up to date.
"@nativescript/geolocation": "^8.0.2"
"@nativescript/google-maps": "^1.4.7"
code:
loadLocations.forEach((loc) => {
let marker = new Marker();
let img = new Image();
img.imageSource = ImageSource.fromFileSync('~/images/pin-atm2.png');
marker = {
icon: img,
position: {
lat: loc.latitude,
lng: loc.longitude
},
visible: true,
userData: loc,
title: null
} as Marker;
this.map.addMarker(marker)
});
any idea?
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
使用提供的 marker loop 和圖片,在列出的 NativeScript、Android、geolocation 和 google-maps 版本下重現此問題。檢查 @nativescript/google-maps 中 Android 的 marker 處理,並根據回報的行為驗證結果;當每個座標都能像在 iOS 上一樣在 Android 上產生可見的 marker 時,即完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, typescript
- 領域
- mobile-dev
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100