plugins
plugins copied to clipboard
[@nativescript/google-maps] No markers appeared on Android
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?
Hi @paul-castro, Any errors in the console?
I have the same issue, no errors in the console!
@paul-castro, I solve the issue! marker.position latitude/longitude must be a float, not string!