How to add 'current location button'(navigation mark) on apple map on Ti.map
<p>I am using Ti.map for my titanium iOS/android</p>

<p>As for Android</p>

<p>There is automatically added the current location button</p>

<p><a href="https://i.stack.imgur.com/GrVHK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GrVHK.png" alt="enter image description here"></a></p>

<p>(I am not sure what this button is called, so I call this 'current location button' for now.</p>

<p>However As for iOS,</p>

<p>current location button is not added automatically.</p>

<p>Is there a way to add this button on apple map??</p>

<p>These are my codes.</p>

<pre><code>    var mapView = Map.createView({
        mapType:Map.NORMAL_TYPE,
        userLocation:true,
        region: {latitude:35.699058, longitude:139.326099,    
        latitudeDelta:0.01, longitudeDelta:0.01},
        animate:false,
        regionFit:true,
        userLocation:true,
    });
</code></pre>

<hr>

<p>I read <a href="https://github.com/appcelerator-modules/ti.map/blob/master/apidoc/Map.yml" rel="nofollow noreferrer">this</a> article and found.</p>

<pre><code>  -   To use the `userLocation` property in iOS 8 and later, add either the
        [`NSLocationWhenInUseUsageDescription`](https://developer.apple.com/library/prerelease/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW26)
        or
        [`NSLocationAlwaysUsageDescription`](https://developer.apple.com/library/prerelease/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW18)
        key to the iOS plist section of the project's `tiapp.xml` file.
            &lt;ti:app&gt;
                &lt;ios&gt;
                    &lt;plist&gt;
                        &lt;dict&gt;
                            &lt;key&gt;NSLocationAlwaysUsageDescription&lt;/key&gt;
                            &lt;string&gt;
                                Specify the reason for accessing the user's location information.
                                This appears in the alert dialog when asking the user for permission to
                                access their location.
                            &lt;/string&gt;
                        &lt;/dict&gt;
                    &lt;/plist&gt;
                &lt;/ios&gt;
            &lt;/ti:app&gt;
</code></pre>

<p>So I add this in my tiapp.xml and prompt alert is shown correctly.</p>

<p>However, still current location button is not appeared.</p>

<p>In default apple map application of iOS, there is current location button (arrow mark) down left.</p>

<hr>

<p>Thanks to comment.</p>

<p>My first idea is wrong. 'userLocation:true' is not related with the button which I called 'current location button'</p>

<p>So I made another button manually and connect Ti.Geolocation.</p>

<pre><code>var locationButton = Ti.UI.createButton({
        backgroundImage:'/images/check.png',
        right:'15dp',width:'32dp',height:'32dp'
    });
    mapView.add(locationButton);
    locationButton.addEventListener('click',function(){
        Ti.API.info("get current location");    
         if (Ti.Geolocation.locationServicesEnabled) {
            Titanium.Geolocation.getCurrentPosition(function(e) {
                if (e.error) {
                    Ti.API.error('Error: ' + e.error);
                } else {
                    Ti.API.info(e.coords);
                    mapView.setLocation({
                        latitude:e.coords.latitude, longitude:e.coords.longitude, animate:false,
                        latitudeDelta:0.01, longitudeDelta:0.01
                    });
                }
            });
        } else {
            alert('Please enable location services');
        }
    });
</code></pre>

<p><a href="https://i.stack.imgur.com/vaEDT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vaEDT.jpg" alt="enter image description here"></a></p>

<p>Now it works well, thanks for your help.</p>