mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-27 11:01:13 +00:00
Fix spelling of 'location'. Fixes #275
This commit is contained in:
+2
-2
@@ -52,7 +52,7 @@ public class ReactNativeMapboxGLManager extends SimpleViewManager<MapView> {
|
||||
public static final String PROP_ONUSER_LOCATION_CHANGE = "onUserLocationChange";
|
||||
public static final String PROP_ROTATION_ENABLED = "rotateEnabled";
|
||||
public static final String PROP_SCROLL_ENABLED = "scrollEnabled";
|
||||
public static final String PROP_USER_LOCATON = "showsUserLocation";
|
||||
public static final String PROP_USER_LOCATION = "showsUserLocation";
|
||||
public static final String PROP_STYLE_URL = "styleUrl";
|
||||
public static final String PROP_USER_TRACKING_MODE = "userTrackingMode";
|
||||
public static final String PROP_ZOOM_ENABLED = "zoomEnabled";
|
||||
@@ -305,7 +305,7 @@ public class ReactNativeMapboxGLManager extends SimpleViewManager<MapView> {
|
||||
view.setRotateEnabled(value);
|
||||
}
|
||||
|
||||
@ReactProp(name = PROP_USER_LOCATON, defaultBoolean = true)
|
||||
@ReactProp(name = PROP_USER_LOCATION, defaultBoolean = true)
|
||||
public void setMyLocationEnabled(MapView view, Boolean value) {
|
||||
view.setMyLocationEnabled(value);
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ RCT_EXPORT_MODULE();
|
||||
if ([id length] != 0) {
|
||||
[_annotations setObject:annotation forKey:id];
|
||||
} else {
|
||||
RCTLogError(@"field `id` is required on all annotation");
|
||||
RCTLogError(@"field `id` is required on all annotations");
|
||||
}
|
||||
[_map addAnnotation:annotation];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user