I am using mapbox plug-in in my nativescript project. I have to show few markers on the map and I would like to set these titles to always visiable. Is there an easy way to do it on nativescript plug-in ?
args.map.addMarkers([
{
lat: 41.0063886,
lng: 28.9781057,
title: 'Area 1',
subtitle: 'Something',
onCalloutTap: function () {
console.log("");
},
}
This is how I add a marker.
<ContentView height="320" width="320">
<map:Mapbox
accessToken=""
mapStyle="light"
latitude="41.01557434"
longitude="28.9800726"
zoomLevel="13"
showUserLocation="true"
mapReady="onMapReady">
</map:Mapbox>
</ContentView>
and this is how I create the map.