Questions tagged [currentlocation]

Current Location refers to programmatically identifying the GPS location of a device, such as an iPhone app requesting information about its current location to display in a map or find nearby places, for example.

Current Location refers to programmatically identifying the GPS location of a device, such as an iPhone app requesting information about its current location to display in a map or find nearby places, for example.

See also:

221 questions
1
vote
0 answers

get latitude and longitude of my current location without internet in react js

I want to get the latitude and longitude of my current location without internet in react js. Is it possible to get that? Please help me in resolving this issue. Thanks in advance.
sureshtechi
  • 145
  • 5
  • 15
1
vote
1 answer

How to use LocationRequest? Because direct constructor is not working nor .create()

I am trying to get current location in a map fragment but unable to do so because LocationRequest.create() is not wokring. Neither works: LocationRequest l = new LocationRequest(); OR LocationReuest l = LocationRequest.create(); My…
rushabhvg
  • 88
  • 1
  • 12
1
vote
1 answer

My current location always locates google plex in Flutter

My current location always shows Google Plex when I clicked the current location button. I don't know where is the error as I already added my API and asked for user permissions which are
Jenny
  • 13
  • 3
1
vote
0 answers

my flutter google maps project, after first install I can't see the blue dot of my gps location, but on every other opening of the app it works

In my flutter google maps project, after first install I can't see the blue dot of my gps location(current location) on every other opening of the app it works properly. Please help me to understand the issue and to fix the issue. I used geoLocation…
Jack Y
  • 75
  • 7
1
vote
0 answers

How to resolve the Can't perform a React state update on an unmounted component.! Always show this whenever i display Map

I have two-component classes. First is TrackRoute1.js from which I'm passing bus location parameters and also user current location parameters to class Dispaly.js through the server. But after displaying I keep getting a memory leak that indicates…
1
vote
1 answer

How to pan to current location with local Google Maps .html file on android phone?

The goal is to have a local .html file on an android phone, that can be opened with a standard web browser, which has functionality to pan to current location on Google Maps. Currently the panning to current location works on mi browser on android…
Davma
  • 274
  • 5
  • 13
1
vote
0 answers

How to keep the current location dot on the centre of the map when moving?

So, I am creating an App, where I am adding multiple Geo-Fencing. But, as my current location is moving but the map is not moving, so the current location is going outside the map view. To summarize, the current location dot is not in the center of…
1
vote
1 answer

Xcode - CoreLocation not showing blue dot

For some reason when I launch my app it does everything correctly except show the user as blue dot on the map. It zooms in to the users current location, just no dot. Any help would be greatly appreciated. I've added code and screenshots below for…
ryan
  • 915
  • 2
  • 13
  • 25
1
vote
2 answers

Give java.lang.NullPointerException: when i click on current location button

when i click on current button for getting user's current location then give nullpointer exception even i check the fusedapi is granted or not and also when user allow for current location access then i retrive the current location but it show the…
1
vote
1 answer

Flutter map current location : The following NoSuchMethodError was thrown building HomeScreen(dirty, state:_HomeScreenState#fc684)

I am using flutter map and geolocator package to get current location and display in map but I am getting error as below The getter 'latitude' was called on null. Receiver: null Tried calling: latitude I have gone through this issue but haven't…
Mahant
  • 419
  • 2
  • 8
  • 19
1
vote
2 answers

How to fix " java.lang.NoSuchMethodError: com.google.firebase.database.DatabaseReference.setValue"

I'm setting up a current location in my application.Where do i need to set the encoding? @Override public void onLocationChanged(Location location) { mLastLocation = location; LatLng latLng = new LatLng(location.getLatitude(),…
1
vote
1 answer

without turn on location not showing current location in android

Hi in the below code am setting current location to my application.If it is turn on the location by manually it was showing current location. If am not turn it on it was showing nothing in my map. But i want to display the permission to turn on…
jyo cha
  • 71
  • 9
1
vote
0 answers

Locating position of the user is not rendering in React Native App

I've been dealing with this error in 2 days but still can't find a solution for it. So I decided to post it here in the Stack Overflow. By the way, I'm using physical device with android version of 8.1 This is the error I get in my…
1
vote
4 answers

Unable to get current location with google map

I'm using google map in a project, where I want to get my current location which is not working correctly, MyActivity.java code: LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); boolean enabled =…
SadeQ digitALLife
  • 1,403
  • 4
  • 16
  • 22
1
vote
1 answer

Can't enable MyLocation with Google Maps API

I tried to set-up the Google Maps API in order to show my location with "map.setMyLocationEnabled(true);" but it does not work. When I write it with permission check, my app start and nothing happend. But when I remove permission check, my app…
Milan CAMUS
  • 23
  • 1
  • 5