Toggle navigation
Toggle navigation
This project
Loading...
Sign in
尹诚
/
Mapbox-iOS-SDK
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Paul Bridger
12 years ago
Committed by
Justin R. Miller
12 years ago
Commit
1cdf8cfe7342c2c3f52a9f4e88afda0f01f99569
1 parent
60915427
fix custom marker colors - integer cast was done on a value of range
0..1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
MapView/Map/RMMarker.m
MapView/Map/RMMarker.m
View file @
1cdf8cf
...
...
@@ -121,7 +121,7 @@
CGFloat
red
,
green
,
blue
,
alpha
;
if
([
color
getRed
:
&
red
green
:
&
green
blue
:
&
blue
alpha
:
&
alpha
])
colorHex
=
[
NSString
stringWithFormat
:
@"%02x%02x%02x"
,
(
(
NSUInteger
)
red
*
255
),
((
NSUInteger
)
green
*
255
),
((
NSUInteger
)
blue
*
255
)];
colorHex
=
[
NSString
stringWithFormat
:
@"%02x%02x%02x"
,
(
NSUInteger
)(
red
*
255
),
(
NSUInteger
)(
green
*
255
),
(
NSUInteger
)(
blue
*
255
)];
}
return
[
self
initWithMapBoxMarkerImage
:
symbolName
tintColorHex
:
colorHex
sizeString
:
sizeString
];
...
...
Please
register
or
login
to post a comment