Commit edc68689 authored by 7c00's avatar 7c00

修正拼写错误

parent 6971c62f
......@@ -228,12 +228,12 @@ class AMapView(context: Context) : TextureMapView(context) {
locationStyle.radiusFillColor(style.getInt("fillColor"))
}
if (style.hasKey("stockColor")) {
locationStyle.strokeColor(style.getInt("stockColor"))
if (style.hasKey("strockeColor")) {
locationStyle.strokeColor(style.getInt("strockeColor"))
}
if (style.hasKey("stockWidth")) {
locationStyle.strokeWidth(style.getDouble("stockWidth").toFloat())
if (style.hasKey("strockeWidth")) {
locationStyle.strokeWidth(style.getDouble("strockeWidth").toFloat())
}
if (style.hasKey("image")) {
......
......@@ -3,6 +3,6 @@
@interface LocationStyle : NSObject
@property(nonatomic, strong) UIImage *image;
@property(nonatomic, strong) UIColor *fillColor;
@property(nonatomic, strong) UIColor *stokeColor;
@property(nonatomic, assign) CGFloat stokeWidth;
@property(nonatomic, strong) UIColor *strokeColor;
@property(nonatomic, assign) CGFloat strokeWidth;
@end
\ No newline at end of file
......@@ -28,8 +28,8 @@ RCT_ENUM_CONVERTER(MAPinAnnotationColor, (@{
+ (LocationStyle *)LocationStyle:(id)json {
LocationStyle *locationStyle = [LocationStyle new];
locationStyle.fillColor = [self UIColor:json[@"fillColor"]];
locationStyle.stokeColor = [self UIColor:json[@"stokeColor"]];
locationStyle.stokeWidth = [self CGFloat:json[@"stokeWidth"]];
locationStyle.strokeColor = [self UIColor:json[@"strokeColor"]];
locationStyle.strokeWidth = [self CGFloat:json[@"strokeWidth"]];
locationStyle.image = [UIImage imageNamed:[self NSString:json[@"image"]]];
return locationStyle;
}
......
......@@ -46,8 +46,8 @@
_locationStyle = [MAUserLocationRepresentation new];
}
_locationStyle.fillColor = locationStyle.fillColor;
_locationStyle.strokeColor = locationStyle.stokeColor;
_locationStyle.lineWidth = locationStyle.stokeWidth;
_locationStyle.strokeColor = locationStyle.strokeColor;
_locationStyle.lineWidth = locationStyle.strokeWidth;
_locationStyle.image = locationStyle.image;
[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