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
f03045d8d6701398c7d7be77093d70a1492e43e6
1 parent
8ea867d2
also sort circles with shapes in z-ordering
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
MapView/Map/RMMapView.m
MapView/Map/RMMapView.m
View file @
f03045d
...
...
@@ -2842,10 +2842,10 @@
// markers above shapes
//
if
(
[
annotation1
.
layer
isKindOfClass
:[
RMMarker
class
]]
&&
[
annotation2
.
layer
isKindOfClass
:[
RMShape
class
]])
if
(
[
annotation1
.
layer
isKindOfClass
:[
RMMarker
class
]]
&&
[
@[[
RMShape
class
],
[
RMCircle
class
]]
containsObject
:[
annotation2
.
layer
class
]])
return
NSOrderedDescending
;
if
(
[
annotation1
.
layer
isKindOfClass
:[
RMShape
class
]]
&&
[
annotation2
.
layer
isKindOfClass
:[
RMMarker
class
]])
if
(
[
@[[
RMShape
class
],
[
RMCircle
class
]]
containsObject
:[
annotation1
.
layer
class
]]
&&
[
annotation2
.
layer
isKindOfClass
:[
RMMarker
class
]])
return
NSOrderedAscending
;
// the rest in increasing y-position
...
...
Please
register
or
login
to post a comment