[2.x] MMScaleBar - MetamediaTechnology/longdo-map-demo-ios GitHub Wiki
- (void)show;
Description
Show map scale bar.
- (void)hide;
Description
Hide map scale bar.
- (void)setAlpha:(float)alpha;
Description
Set map scale bar alpha.
Parameters
- alpha new scale bar alpha value (0.0f - 1.0f).
- (void)animateScaleBarAlphaTo:(float)alpha withAnimationDuration:(float)second;
Description
Set map scale bar alpha with animation.
Parameters
-
alpha new scale bar alpha value (0.0f - 1.0f).
-
second animation duration.
- (void)setColorRed:(float)red green:(float)green blue:(float)blue;
Description
Set map scale bar color.
Parameters
-
red new scale bar red color (0.0f - 1.0f).
-
green new scale bar green color (0.0f - 1.0f).
-
blue new scale bar blue color (0.0f - 1.0f).
- (void)setMarginX:(int)x andY:(int)y;
Description
Set map scale bar margin.
Parameters
-
x scale bar margin in x axis
-
y scale bar margin in y axis
- (void)setUpSideDown:(bool)isInvert;
Description
Set map scale bar upside down.
Parameters
- isInvert will scale bar upside down.
- (void)setRightToLeft:(bool)isInvert;
Description
Set map scale bar right to left.
Parameters
- isInvert will scale bar scale from right to left.