Questions tagged [react-native-mapbox-gl]

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

72 questions
0
votes
1 answer

How to "round" GeoJSON coordinates using mapbox

I am developing a react-native-mapbox-gl app on Windows 10. I need to "round" GeoJSON points uploaded to the app so that they appear in the center of a house block. For example: Figure 1: A marker is added on the northeaster corner of a…
Mati L
  • 55
  • 4
0
votes
1 answer

mapbox gl - Pbf layer not working in android

I m using react native mapbox gl and added pbf tile like :
Khurshid Ansari
  • 4,638
  • 2
  • 33
  • 52
0
votes
1 answer

Using Google maps on iOS application (App Review)

I am using Apple Developer program. In my mobile (React Native iOS (and Android)) app I am using Google maps. Can I go on App store like that, or I need to use iOS maps if I want to submit my app to App Store? Will I pass App Review with Google…
0
votes
1 answer

Distrubution Code signing Mapbox.framework failed for iOS

I have an issue with uploading my app to the app store when signing the app. I got Code signing "Mapbox.framework" failed. I have set up the build phase as instructed here…
0
votes
0 answers

Not able to reset pitch, heading, bounds, centerCoordinate together in single config

I am having this strange issue when I try to set the pitch, heading, bounds and centerCoordinate of a camera in a single config. Initially, this is the config of the camera I am having - pitch: 0 heading: 0 bounds: some coordinate…
Awadhoot
  • 737
  • 6
  • 19
0
votes
1 answer

React Native using RNFS in order to load and display Mapbox icons stored on the device

Currently I am trying to implement a way to use React-Native to display custom icons on a Mapbox map that are stored on the users device. I thought the example found here (ShapeSourceIcon example for the official documentation as a starting…
0
votes
1 answer

Mapbox CustomCSS styles converted to GL Styles: pirates, pencil

I used to work with react-leaflet to build maps, and now I am on a react-native project where I use @react-native-mapbox-gl/maps. With react-leaflet, I could use some raster tile url, such as…
0
votes
1 answer

Can't change pitch value on MapView or Camera

I've just switch from react-native-maps-osmdroid to react-native-mapbox-gl and havn't succeed to change pitch yet. I've tried to set pitch in differents ways : - directly on MapView component - on Camera component with props "pitch" and…
Ethaqnix
  • 21
  • 8
0
votes
3 answers

How do you convert normal geographic json coming from server into geoJson?

I have a server with geographic data in normal json format, which I need to change into geojson format so Mapbox can read it. How do you do this? For example, how do you convert this: [ { "id": 0, "name": "Hotel", "icon": "Sleep", …
0
votes
1 answer

react native mapbox getCenter not working

I have a problem with this lib. I am trying to get the current center coordinate from the map by (onPress), but none to display, agree = async () => { const center = await this._map.getCenter(); console.warn(center); } the map…
0
votes
3 answers

React Native Mapbox gl Initial Center Coordinates

So I am trying to set my initial center coordinates for mapbox so they are not 0,0. On the api it says mapbox expects a prop of initialCenterCoordinate object Optional Initial latitude/longitude the map will load at. { latitude:0,…
wdlax11
  • 822
  • 3
  • 11
  • 29
-1
votes
1 answer

Using react-native-mapbox-gl / maps in the form of mapbox-gl

I want to use react-native-mapbox-gl/maps in the form of mapbox- gl for example i do everything that i can to initialize MapView component in useEffect instead of component. Is it poosible that can I rewrite the code in below that is readable for…
1 2 3 4
5