mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-31 13:01:15 +00:00
Issue #301: Fixed location of press
Moved the styleURL to the RCTMapbox and used the latLng provided. Reversed styleURL change White space Removed comma
This commit is contained in:
+2
-2
@@ -275,8 +275,8 @@ public class ReactNativeMapboxGLManager extends SimpleViewManager<MapView> {
|
||||
public void onMapLongClick(@Nullable LatLng location) {
|
||||
WritableMap event = Arguments.createMap();
|
||||
WritableMap loc = Arguments.createMap();
|
||||
loc.putDouble("latitude", view.getCenterCoordinate().getLatitude());
|
||||
loc.putDouble("longitude", view.getCenterCoordinate().getLongitude());
|
||||
loc.putDouble("latitude", location.getLatitude());
|
||||
loc.putDouble("longitude", location.getLongitude());
|
||||
event.putMap("src", loc);
|
||||
ReactContext reactContext = (ReactContext) view.getContext();
|
||||
reactContext
|
||||
|
||||
Reference in New Issue
Block a user