NativeScript / NativeScript/plugins
[@nativescript/google-maps] No markers appeared on Android
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 206
- Forks
- 123
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 1
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the listed NativeScript, Android, geolocation, and google-maps versions using the provided marker loop and image. Inspect the Android marker handling in @nativescript/google-maps and verify the result against the reported behavior; done when every coordinate produces a visible marker on Android as on iOS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, typescript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100