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:
julioahurtado
2016-03-08 16:13:00 -08:00
parent 6e84c9e987
commit f65414e56b
@@ -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