ref passed through is an int

This commit is contained in:
bsudekum
2015-12-24 12:21:24 -06:00
parent 95ee801453
commit dc07e36d6d
@@ -65,12 +65,12 @@ public class ReactNativeMapboxGLModule extends ReactContextBaseJavaModule {
}
@ReactMethod
public void setDirectionAnimated(String mapRef, int direction) {
public void setDirectionAnimated(int mapRef, int direction) {
aPackage.getManager().setDirection(aPackage.getManager().getMapView(), direction);
}
@ReactMethod
public void setCenterCoordinateAnimated(String mapRef, double latitude, double longitude) {
public void setCenterCoordinateAnimated(int mapRef, double latitude, double longitude) {
WritableMap location = Arguments.createMap();
location.putDouble("latitude", latitude);
location.putDouble("longitude", longitude);
@@ -78,7 +78,7 @@ public class ReactNativeMapboxGLModule extends ReactContextBaseJavaModule {
}
@ReactMethod
public void setCenterCoordinateZoomLevelAnimated(String mapRef, double latitude, double longitude, double zoom) {
public void setCenterCoordinateZoomLevelAnimated(int mapRef, double latitude, double longitude, double zoom) {
WritableMap location = Arguments.createMap();
location.putDouble("latitude", latitude);
location.putDouble("longitude", longitude);
@@ -87,12 +87,12 @@ public class ReactNativeMapboxGLModule extends ReactContextBaseJavaModule {
}
@ReactMethod
public void addAnnotations(String mapRef, ReadableArray value) {
public void addAnnotations(int mapRef, ReadableArray value) {
aPackage.getManager().setAnnotations(aPackage.getManager().getMapView(), value);
}
@ReactMethod
public void setUserTrackingMode(String mapRef, int mode) {
public void setUserTrackingMode(int mapRef, int mode) {
aPackage.getManager().setMyLocationTrackingMode(aPackage.getManager().getMapView(), mode);
}
@@ -102,12 +102,12 @@ public class ReactNativeMapboxGLModule extends ReactContextBaseJavaModule {
}
@ReactMethod
public void setTilt(String mapRef, double pitch) {
public void setTilt(int mapRef, double pitch) {
aPackage.getManager().setTilt(aPackage.getManager().getMapView(), pitch);
}
@ReactMethod
public void setVisibleCoordinateBoundsAnimated(String mapRef, double latSW, double lngSW,double latNE, double lngNE, float paddingTop, float paddingRight, float paddingBottom, float paddingLeft) {
public void setVisibleCoordinateBoundsAnimated(int mapRef, double latSW, double lngSW,double latNE, double lngNE, float paddingTop, float paddingRight, float paddingBottom, float paddingLeft) {
WritableMap info = Arguments.createMap();
info.putDouble("latSW", latSW);
info.putDouble("lngSW", lngSW);