For questions regarding the use of the mapbox library within react native applications
Questions tagged [react-native-mapbox-gl]
72 questions
1
vote
0 answers
EsxFramebufferObject::DetachAll(EsxContext*) Segfault Crash in React Native project that uses MapboxGL on Android
So this crash has been the bane of my existence for 3 months now.
It is single handedly putting us over the Bad Behavior threshold with Google. I've never experienced it personally, I just know we've got hundreds of users a month with this…

Seth
- 134
- 1
- 14
1
vote
1 answer
onPress event not working with MapboxGL.MarkerView
I an using "import MapboxGL,{MarkerView} from "@react-native-mapbox-gl/maps" for maps.
return (
console.log("pressed")}>

Rupak
- 409
- 1
- 3
- 18
1
vote
0 answers
Can't find function `visibleFeatures`
MapBox with react-native.
How to know if a point is on "water"(ocean) or land.
can't find function visibleFeatures in react-native?
var LocationSelect = function(props) {
const mapContainer = useRef(null);
function onMapPointSelect(data) {
…

shay te
- 1,028
- 3
- 12
- 23
1
vote
1 answer
Mapbox icon size interpolation stops working
I am running a Mapbox map with points that have an icon with this style:
iconImage: ['get', 'icon'],
iconSize: ['interpolate', ['linear'], ['zoom'], 15, 0.0015, 23, 0.2],
iconAllowOverlap: true,
The icon is an image of a house. The…

dclipca
- 1,739
- 1
- 16
- 51
1
vote
1 answer
How to display particular country map in React Native
Is there any way to display only a particular country (either USA or UK or India) using react-native-mapbox-gl/maps & react-native-map.
Using the above libraries I am able to display world map but my requirement here is to display only a particular…

Shariq
- 83
- 2
- 13
1
vote
0 answers
Polygon is not draggable
I drawn a polygon using MapboxGL.ShapeSource and added MapboxGLView.PointAnnotation on every point to make points draggable.
But i'm facing issues
When i finished the draw of Polygon, i'm not able to move or drag the polygon
Polygon Data =>…

MAhipal Singh
- 4,745
- 1
- 42
- 57
1
vote
1 answer
React Native Mapbox GL: MarkerView component is missing
I hope this is the right place to ask. I'm developing a react-native-mapbox-gl/maps app on Windows 10, and the MarkerView component just isn't showing up. Here's the App.js code for reference:
import React, { Component } from 'react';
import {
…

Mati L
- 55
- 4
1
vote
0 answers
App crash when react-native-mapbox-gl in release mode
App is working fine in debug mode and it is crashing in release mode
When we go the map page and apply zoom in or zoom out the app is crashing
this.storeSelectedValues(res)}
id={'line' +…

Mohan Raj
- 11
- 2
1
vote
1 answer
react-native mapbox symbol layer render icons from URI dynamically
I need to show custom icons in my places, that icons are loaded from a specific URL dynamically. Here is my code.
const PlacesMarker = props => {
const { places } = props
const [geoJson, setGeoJson] = useState([])
useEffect(() => {
…

yosel vera
- 106
- 2
- 9
1
vote
1 answer
custom event to check if the style image is missing in react native mapbox gl maps
I am using react-native-mapbox-gl/maps extensively in my react native app and I wanted to add dynamic style icons to the chart style.
The javascript mapbox library has a nice event called styleimagemissing with which we can check which image for a…

Awadhoot
- 737
- 6
- 19
1
vote
1 answer
React native turn by turn navigation
we working with expo and using mapview, however, there are many restrictions in react native maps, as we are planning to implement turn by turn navigation. Integrating Mapbox would have been the best option, however we do not think it’s best to…

vincent O
- 518
- 8
- 33
1
vote
1 answer
How to show dynamically retrieved GeoJSON using a ShapeSource and Circle layer for Mapbox using React-Native
I'm successfully retrieving a set of features from my API, when I output them to e.g. for the console it would something like this:
{type: "feature" geometry: {type: point, coordinates: array(2)}
properties: {extra properties}}
Multiple of…

MikeSli
- 927
- 2
- 14
- 32
1
vote
0 answers
React-Native MapBox Clustering with custom icons
How to perform clustering in React Native Mapbox with custom icons.
i have checked the earthquake clustering example given on GitHub page of mapbox react native. but i need something different like, i need to do clustering with custom icons. i have…

Vijay Sharma
- 11
- 3
1
vote
4 answers
Calculate bbox in turf.js,MapBox,react-native-mapbox-gl(react-native code)?
I am trying to calculate bbox from turf.js like give in the below link
http://turfjs.org/docs#bbox
This is my code and how i tried to implement bbox from turf.js But its resulting in an error.
import React, { Component } from 'react';
import { View,…

Amal p
- 2,882
- 4
- 29
- 49
0
votes
0 answers
How to draw polygon using react native mapbox package?
I am trying to draw polygon on map but I couldn't find a single example that shows how to do it. This question has been asked before but no correct answer was provided.
const GeoJson = {
type: 'FeatureCollection',
features: [
{
…

showtime
- 1
- 1
- 17
- 48