Commit 292c59c9 authored by 放牛的园子's avatar 放牛的园子

修改地图高度设置

parent 974bcf93
......@@ -13,6 +13,15 @@
MAUserLocationRepresentation *_locationStyle;
}
- (void)layoutSubviews
{
[super layoutSubviews];
CGRect temp1 = self.frame;
temp1.size.height = self.mheight;
self.frame = temp1;
}
- (instancetype)init {
_markers = [NSMutableDictionary new];
_smoothmarkers = [NSMutableDictionary new];
......@@ -32,6 +41,10 @@
self.showsUserLocation = enabled;
}
- (void)setHeight:(CGFloat)height {
self.mheight = height;
}
- (void)setShowCompass:(BOOL)enabled {
self.showsCompass = enabled;
}
......
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