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
Justin R. Miller
12 years ago
Commit
e8ee507245b0f49490f52c41cb79826490cf06ca
1 parent
8183cf0c
refs #166: do shape hit detection based on painted areas
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
MapView/Map/RMCircle.m
MapView/Map/RMShape.m
MapView/Map/RMCircle.m
View file @
e8ee507
...
...
@@ -134,6 +134,11 @@
#pragma mark - Accessors
-
(
BOOL
)
containsPoint
:
(
CGPoint
)
thePoint
{
return
CGPathContainsPoint
(
shapeLayer
.
path
,
nil
,
thePoint
,
[
shapeLayer
.
fillRule
isEqualToString
:
kCAFillRuleEvenOdd
]);
}
-
(
void
)
setLineColor
:
(
UIColor
*
)
newLineColor
{
if
(
lineColor
!=
newLineColor
)
...
...
MapView/Map/RMShape.m
View file @
e8ee507
...
...
@@ -435,6 +435,11 @@
#pragma mark - Accessors
-
(
BOOL
)
containsPoint
:
(
CGPoint
)
thePoint
{
return
CGPathContainsPoint
(
shapeLayer
.
path
,
nil
,
thePoint
,
[
shapeLayer
.
fillRule
isEqualToString
:
kCAFillRuleEvenOdd
]);
}
-
(
void
)
closePath
{
if
([
points
count
])
...
...
Please
register
or
login
to post a comment