Questions tagged [react-native-maps]

React Native Maps is a set of components developed by Airbnb to facilitate the rendering of map components using React Native framework on both Android and iOS.

React Native Maps is a set of components developed by Airbnb to facilitate the rendering of map components using React Native framework on both Android and iOS. Basic developer's guide and example projects are available on: https://github.com/airbnb/react-native-maps

1070 questions
68
votes
4 answers

React native MapView: what is latitudeDelta longitudeDelta

In the example from react native mapview they have latitudeDelta and longitudeDelta. Is it equal to the height and width? And in what unit? Accoring to their github comment , it says Distance between the minimum and the maximum latitude/longitude…
thatsIT
  • 2,085
  • 6
  • 29
  • 43
43
votes
7 answers

How to zoom in/out in react-native-map?

I am using react-native to build a map application. The api I am using is from this link: https://github.com/lelandrichardson/react-native-maps. Below is the code I bring the map on my app. I wonder how I can give a zoom value on that map. And how I…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
34
votes
3 answers

Get current location, latitude and longitude in ReactNative using react-native-maps

I am developing a map location. When I click in some particular place I get the latitude and longitude, but not the current location, latitude and longitude. I don't know how to find out. How can I get them and how can I put the marker at that…
Lavaraju
  • 2,614
  • 7
  • 29
  • 49
23
votes
4 answers

react native maps clustering

I want to integrate maps in my react-native app, I am using the “react-native-maps” library for that https://github.com/airbnb/react-native-maps I want to use clustering but I am unable to find proper documentations related to that. Please help me…
coffee
  • 498
  • 2
  • 6
  • 17
21
votes
6 answers

unknown property 'supportLibVersion' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler

I am getting following error Could not get unknown property 'supportLibVersion' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHand I am working on react-native application and react-native-maps…
Abhi
  • 1,127
  • 1
  • 12
  • 25
21
votes
6 answers

A way to only link fonts react native

I am working with react native and I only want to link my fonts and nothing else. I am using react-native-maps and it specifically says in the docs "Do not use react-native link" Everywhere I look I see that people say to do react-native link in…
E Pierre
  • 416
  • 1
  • 4
  • 14
17
votes
2 answers

Get "supportLibVersion" , "playServicesVersion" and "androidMapsUtilsVersion" Value in configuration react-native-maps

I am installing react-native-maps. In the installation guide, on Build configuration on Android in Section 3.1, it shows: buildscript { ext { buildToolsVersion = "xxx" minSdkVersion = xxx compileSdkVersion = xxx …
17
votes
10 answers

React Native Maps: Markers image doesn't show using Custom Marker in react-native-maps

I'm using react-native-maps but I faced a problem that after a lot of googling without answer makes me ask it here. I'm trying to use Custom Marker for the marker in the map as the following picture as I searched I found out that needed to use…
Abdu4
  • 1,269
  • 2
  • 11
  • 19
17
votes
16 answers

React-native-maps Blank page Only google logo

I've been trying to install google maps for react-native for a week an still no success. I've searched and tried the solutions in the react-native-maps github issue but still I get a blank page. What I do: react-native init myapp npm install yarn…
14
votes
12 answers

"Error using newLatLngBounds(LatLngBounds, int): Map size can't be zero...." using react-native-maps on Android

I get an error: "Error using newLatLngBounds(LatLngBounds, int): Map size can't be zero. Most likely layout has not yet occured for the map view. Either wait until layout has occurred or use newLatLngBounds(LatLngBounds, int, int, int) which allows…
raph
  • 289
  • 1
  • 2
  • 11
14
votes
1 answer

navigator.geolocation.watchPosition only return each 100 m

I am using navigator.geolocation.watchPosition in my react native project to paint a path on a map while the user is moving. I noticed that the return frequency is quite low for this function. I taught it was the frequency at least, when I tested…
rablentain
  • 6,641
  • 13
  • 50
  • 91
13
votes
2 answers

React Native Maps: Custom Markers cause extreme lag and slow down on android

I load up to about 2000 markers on the map. It works fine for the first few seconds but then slows down sharply. To fix it I need to clear the app data, then it only works for a few seconds and again like before. const mapMarkers = [ {id: 1,…
13
votes
2 answers

Convert a Region latitudeDelta / longitudeDelta into an approximate zoomLevel

I use the great react-native-maps from Airbnb on a react-native app. I got a list of markers on a JSON file where each of these markers have a property zoom which is a integer of an approximate zoom level where the marker should display / hide on…
Thmsct
  • 463
  • 1
  • 4
  • 9
12
votes
1 answer

React Native Maps - new pricing

Since Google switched their pricing model, and Mobile Native Maps are still unlimited while Javascript SDK maps are limited to 28,000 per month as you can see here. Does anyone know which category react-native-maps falls under? Thanks
12
votes
5 answers

react native navigator.geolocation.getCurrentPosition not working

I am using a real android device (version 5.1) I am able to determine my position using react-native-maps (correct blue point position on map inside my app ) + I am able use google maps app and go to my position (GPS works). I am using a big…
Badis Merabet
  • 13,970
  • 9
  • 40
  • 55
1
2 3
71 72