New StackOverflow Question: Nativescript mapbox plugin , marker titles always visiable

15 views
Skip to first unread message

stacko...@mg.bodar.com

unread,
Mar 7, 2017, 5:10:53 AM3/7/17
to total...@googlegroups.com

Nativescript mapbox plugin , marker titles always visiable

Asked by doğa Budak on 2016-12-30T13:10:37Z

Reply on StackOverflow

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.

Reply on StackOverflow
Reply all
Reply to author
Forward
0 new messages