Nativescript, JavaScript, iOS App Development, Android App Development, Programming.
const icon = new Image(); icon.imageSource = imageSource; marker.icon = icon; that.mapView.addMarker(marker); We’ve downloaded a 48x48 icon image and placed it in the /app/images/ directory. We also need a few Nativescript image libraries, so add these imports to the script section: import {