How to enable Show Location button?
See original GitHub issueHi,
I am wondering how to enable the Location Button on my map (bottom right): http://imgur.com/R1KFUtJ
BTW animateToLocation
method of the gMap
object throws error when executed:
mapView.gMap.animateToLocation();
which resulted in app crash.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
LocationButton | Apple Developer Documentation
LocationButton simplifies requesting one-time authorization to access location data. Add this button to your SwiftUI user interface in situations when users may ...
Read more >Using the new location button to access your user's GPS ...
With iOS 15 and watchOS 8, Apple is now introducing LocationButton , a SwiftUI view that gives your app access to the user's...
Read more >How to Implement Current Location Button Feature in Google ...
Navigate to the app > res > layout > activity_main.xml and add the below code to that file. Below is the code for...
Read more >A better way to ask for a one-time user's location with ... - Sarunw
Normally, the location permission popup won't show again if the user selects the "Don't Allow" option, but that isn't the case for the...
Read more >Can't see my current location, the location button doesn't appear
You can use the My Location layer and the My Location button to provide your user with their current position on the map....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi,
I got this code to work on android and ios. Hope it helps.
Here is a more complete sample. (not tested). Sorry for the bad formating of the code under.
//Plugin from : https://github.com/NathanaelA/nativescript-permissions
var permissions = require('nativescript-permissions');
exports.onMapReady(args){
}
I confirm that the example is working on my side.
Thanks, @Stavanger75 !