NativeScript / NativeScript/plugins

[@nativescript/google-maps] No markers appeared on Android

Open
#345 3 comments 0 reactions 0 assignees View on GitHub

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

Screen Shot 2022-10-07 at 4 54 38 PM

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.