Commit edc68689 authored by 7c00's avatar 7c00

修正拼写错误

parent 6971c62f
...@@ -228,12 +228,12 @@ class AMapView(context: Context) : TextureMapView(context) { ...@@ -228,12 +228,12 @@ class AMapView(context: Context) : TextureMapView(context) {
locationStyle.radiusFillColor(style.getInt("fillColor")) locationStyle.radiusFillColor(style.getInt("fillColor"))
} }
if (style.hasKey("stockColor")) { if (style.hasKey("strockeColor")) {
locationStyle.strokeColor(style.getInt("stockColor")) locationStyle.strokeColor(style.getInt("strockeColor"))
} }
if (style.hasKey("stockWidth")) { if (style.hasKey("strockeWidth")) {
locationStyle.strokeWidth(style.getDouble("stockWidth").toFloat()) locationStyle.strokeWidth(style.getDouble("strockeWidth").toFloat())
} }
if (style.hasKey("image")) { if (style.hasKey("image")) {
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
@interface LocationStyle : NSObject @interface LocationStyle : NSObject
@property(nonatomic, strong) UIImage *image; @property(nonatomic, strong) UIImage *image;
@property(nonatomic, strong) UIColor *fillColor; @property(nonatomic, strong) UIColor *fillColor;
@property(nonatomic, strong) UIColor *stokeColor; @property(nonatomic, strong) UIColor *strokeColor;
@property(nonatomic, assign) CGFloat stokeWidth; @property(nonatomic, assign) CGFloat strokeWidth;
@end @end
\ No newline at end of file
...@@ -28,8 +28,8 @@ RCT_ENUM_CONVERTER(MAPinAnnotationColor, (@{ ...@@ -28,8 +28,8 @@ RCT_ENUM_CONVERTER(MAPinAnnotationColor, (@{
+ (LocationStyle *)LocationStyle:(id)json { + (LocationStyle *)LocationStyle:(id)json {
LocationStyle *locationStyle = [LocationStyle new]; LocationStyle *locationStyle = [LocationStyle new];
locationStyle.fillColor = [self UIColor:json[@"fillColor"]]; locationStyle.fillColor = [self UIColor:json[@"fillColor"]];
locationStyle.stokeColor = [self UIColor:json[@"stokeColor"]]; locationStyle.strokeColor = [self UIColor:json[@"strokeColor"]];
locationStyle.stokeWidth = [self CGFloat:json[@"stokeWidth"]]; locationStyle.strokeWidth = [self CGFloat:json[@"strokeWidth"]];
locationStyle.image = [UIImage imageNamed:[self NSString:json[@"image"]]]; locationStyle.image = [UIImage imageNamed:[self NSString:json[@"image"]]];
return locationStyle; return locationStyle;
} }
......
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
_locationStyle = [MAUserLocationRepresentation new]; _locationStyle = [MAUserLocationRepresentation new];
} }
_locationStyle.fillColor = locationStyle.fillColor; _locationStyle.fillColor = locationStyle.fillColor;
_locationStyle.strokeColor = locationStyle.stokeColor; _locationStyle.strokeColor = locationStyle.strokeColor;
_locationStyle.lineWidth = locationStyle.stokeWidth; _locationStyle.lineWidth = locationStyle.strokeWidth;
_locationStyle.image = locationStyle.image; _locationStyle.image = locationStyle.image;
[self updateUserLocationRepresentation:_locationStyle]; [self updateUserLocationRepresentation:_locationStyle];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment