Questions tagged [react-native-mapbox-gl]

For questions regarding the use of the mapbox library within react native applications

72 questions
0
votes
0 answers

Mapbox supercluster throws error when trying to zoom a cluster

I use supercluster to display clusters on mabox with react-map-gl. If I click on a cluster, it doesn't zoom in as expected, but the above error is thrown. Does anyone know why or has the same problem solved? Uncaught TypeError: Cannot read…
Captai-N
  • 1,124
  • 3
  • 15
  • 26
0
votes
0 answers

Update raster tile ulr not working - react native mapbox

I am trying to update raster tile layer map service url but it is not not working for me.
Khurshid Ansari
  • 4,638
  • 2
  • 33
  • 52
0
votes
1 answer

How to calculate area of drawn polygon of React native mapbox GL?

Below is the example of drawn polygon and how to calculate the area of the polygon ? I need help to calculate are of polygon using turf.js Like currently in mapbox GL js they have similar functionality of drawing map…
Swift
  • 829
  • 2
  • 12
  • 33
0
votes
2 answers

How to draw polygon on React native mapbox GL?

I am trying to draw the polygon in React native mapbox GL library. Reference : https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/ so here in React webapp they have introduced feature and by adding control we can achieve it. I want to…
Swift
  • 829
  • 2
  • 12
  • 33
0
votes
1 answer

React Native (Track user on following direction (Google Map))

React Native; How we can Monitor The google map Tracking So Actually User drive on line or not, E.g. if i got the direction from Location A to Location B , So how we can check that User Drive on Line or not. Basically i can't Monitor…
0
votes
1 answer

React element not rendering when abstracted

Attempting to map data to create elements - elements are not appearing. When the elements are hard coded in, (Markers) they work fine. When I attempt to abstract it, the Markers are not rendered. Codebox is…
0
votes
1 answer

Interceptor at native level in react native

I am using react-native-mapbox-gl library. Sometime layer failed to load or not working. I want to check which layer service not working. I tried use axios or fetch interceptor but it is not identifying from request from react-native-mapbox-gl…
Khurshid Ansari
  • 4,638
  • 2
  • 33
  • 52
0
votes
1 answer

pointannotation is not working in android

I am using react-native-mapbox-gl library for map and trying to render draggable marker. Following code for render point annotation: (this.annotationRef = ref)} …
Khurshid Ansari
  • 4,638
  • 2
  • 33
  • 52
0
votes
1 answer

Problems with react-native-maps callout

I'm new to React Native and I'm having problems in both platforms with react-native-maps Callout. I'm using Apple maps on iOS and Google ones on Android. Callout shows title and image. On iOS when I have several markers in the map, and some of them…
0
votes
1 answer

Mapbox React Native Ios

Just wondering if anyone is familiar with this error after installing '@react-native-mapbox-gl/maps' into an Ios React Native app. I've installed and updated the Podfile as instructed and am using the latest 8.02beta version of the npm library. …
0
votes
1 answer

React-native-mapbox Draw Features?

I want to add react native mapbox a draw features. Like here https://codesandbox.io/s/xenodochial-tu-pwly8?file=/src/index.js:0-978 Is something like this possible ?
0
votes
1 answer

MapboxGL.SymbolLayer filter expression to check if id in array

I am trying to do the following with react-native-mapbox-gl The filter is…
mzu
  • 759
  • 8
  • 20
0
votes
0 answers

populate iconSize depending on property in Mapbox

I have the following style: iconImage: ['get', 'icon'], iconSize: ['interpolate', ['exponential', 2], ['zoom'], 15, 0.02, 23, 3], iconAllowOverlap: true I want to apply a different icon size from every kind of point without having to manually…
dclipca
  • 1,739
  • 1
  • 16
  • 51
0
votes
1 answer

black (night mode) tiles appearing in high zoom levels of custom rastersource react-native-mapbox-gl

I have developed my own maptile server and I want to use it as my raster source in react-native-mapbox-gl this is my code: const rasterSourceProps = { id: 'iranMap', tileUrlTemplates: ['http://.../{z}/{x}/{y}.png'], tileSize:…
0
votes
1 answer

react native mapbox does not load map in release APK

Describe the bug In my case Map is not displaying in release APK(Marker is showing properly). However debug build is ok. I also have tested creating different token. Example import React, {Component} from 'react'; import Mapbox, {MapView, Camera}…
nazmul
  • 367
  • 2
  • 14