michalchudziak/react-native-geolocation

Issue when initializing position on Map

scipriani opened this issue · 1 comments

Hi,
I'm using the library and it works like a charm.
I show the user location on a MapView(the library is react-native-maps) with showsUserLocation={true}.
I initialize the map centering it on the location I get from Geolocation.getCurrentPosition and sometimes(not always) on android the user location from MapView(the blue spot) is different from the location I obtain from Geolocation.
Why do I get this behaviour? Is this a known issue?

I would like to be centered on the blue spot.

Thanks in advance.