React-native-mapbox-gl: Feature ID not returned on Android when icon pressed, is returned on iOS

Created on 30 May 2018  Â·  1Comment  Â·  Source: nitaliano/react-native-mapbox-gl

In iOS when the icon is pressed the “event.nativeEvent.payload” returned has the original FeatureCollection id, but in Android it does not.

Android:

{properties: {…}, geometry: {…}, type: "Feature"}

iOS:

{id: "123456", properties: {…}, type: "Feature", geometry: {…}}

Attached is a sample of the type of GeoJSON file used.

Versions
React Native: 0.54.4
@mapbox/react-native-mapbox-gl: 6.1.1

mapbox_pins.geojson.zip

Most helpful comment

I fixed the issue with commit https://github.com/mapbox/react-native-mapbox-gl/pull/1200/commits/71be12a84cb77f486ee04575cced6ef291761ad1 this is on branch release/6.1.2, will post back here once we publish a beta for testing

>All comments

I fixed the issue with commit https://github.com/mapbox/react-native-mapbox-gl/pull/1200/commits/71be12a84cb77f486ee04575cced6ef291761ad1 this is on branch release/6.1.2, will post back here once we publish a beta for testing

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VentsislavDinev picture VentsislavDinev  Â·  3Comments

igor9silva picture igor9silva  Â·  3Comments

Craytor picture Craytor  Â·  3Comments

lucasbento picture lucasbento  Â·  3Comments

EwanValentine picture EwanValentine  Â·  3Comments