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
25f3fdcda5d819a926a95c1672210863a9c5c183
1 parent
15a402b1
fixes #169: allow re-add of annotations
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
MapView/Map/RMMapView.m
MapView/Map/RMQuadTree.m
MapView/Map/RMMapView.m
View file @
25f3fdc
...
...
@@ -2869,6 +2869,9 @@
{
@synchronized
(
_annotations
)
{
if
([
_annotations
containsObject
:
annotation
])
return
;
[
_annotations
addObject
:
annotation
];
[
self
.
quadTree
addAnnotation
:
annotation
];
}
...
...
MapView/Map/RMQuadTree.m
View file @
25f3fdc
...
...
@@ -631,7 +631,8 @@
{
@synchronized
(
self
)
{
[
_rootNode
addAnnotation
:
annotation
];
if
(
!
[
_rootNode
.
annotations
containsObject
:
annotation
])
[
_rootNode
addAnnotation
:
annotation
];
}
}
...
...
@@ -643,9 +644,8 @@
@synchronized
(
self
)
{
for
(
RMAnnotation
*
annotation
in
annotations
)
{
[
_rootNode
addAnnotation
:
annotation
];
}
if
(
!
[
_rootNode
.
annotations
containsObject
:
annotation
])
[
_rootNode
addAnnotation
:
annotation
];
}
}
...
...
Please
register
or
login
to post a comment