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
Thomas Rasch
13 years ago
Commit
d68b057621facfad38dae181222b0c3633435a09
1 parent
ff7f299a
o Code cleanup
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
13 deletions
MapView/Map/RMMapView.h
MapView/Map/RMMapView.m
MapView/Map/RMQuadTree.h
MapView/Map/RMTileCache.h
MapView/MapView.xcodeproj/project.pbxproj
MapView/Map/RMMapView.h
View file @
d68b057
...
...
@@ -39,13 +39,13 @@
#import "RMTileSourcesContainer.h"
// constants for boundingMask
enum
{
enum
:
NSUInteger
{
RMMapNoMinBound
=
0
,
// Map can be zoomed out past view limits
RMMapMinHeightBound
=
1
,
// Minimum map height when zooming out restricted to view height
RMMapMinWidthBound
=
2
// Minimum map width when zooming out restricted to view width (default)
};
typedef
enum
{
typedef
enum
:
NSUInteger
{
RMMapDecelerationNormal
,
RMMapDecelerationFast
,
RMMapDecelerationOff
...
...
MapView/Map/RMMapView.m
View file @
d68b057
...
...
@@ -310,7 +310,7 @@
{
CGRect
bounds
=
[
self
bounds
];
return
[
NSString
stringWithFormat
:
@"MapView at
%.0f,%.0f-%.0f,%.0f
"
,
bounds
.
origin
.
x
,
bounds
.
origin
.
y
,
bounds
.
size
.
width
,
bounds
.
size
.
height
];
return
[
NSString
stringWithFormat
:
@"MapView at
{%.0f,%.0f}-{%.0f,%.0f}
"
,
bounds
.
origin
.
x
,
bounds
.
origin
.
y
,
bounds
.
size
.
width
,
bounds
.
size
.
height
];
}
#pragma mark -
...
...
@@ -1484,16 +1484,14 @@
{
NSArray
*
tileSources
=
[
self
tileSources
];
for
(
NSUInteger
i
=
0
;
i
<
[
tileSources
count
];
++
i
)
{
id
<
RMTileSource
>
currentTileSource
=
[
tileSources
objectAtIndex
:
i
];
[
tileSources
enumerateObjectsUsingBlock
:
^
(
id
<
RMTileSource
>
currentTileSource
,
NSUInteger
index
,
BOOL
*
stop
)
{
if
(
tileSource
==
currentTileSource
)
{
[
self
setHidden
:
isHidden
forTileSourceAtIndex
:
i
];
break
;
[
self
setHidden
:
isHidden
forTileSourceAtIndex
:
index
]
;
*
stop
=
YES
;
}
}
}];
}
-
(
void
)
setHidden
:
(
BOOL
)
isHidden
forTileSourceAtIndex
:
(
NSUInteger
)
index
...
...
MapView/Map/RMQuadTree.h
View file @
d68b057
...
...
@@ -10,7 +10,7 @@
@class
RMAnnotation
,
RMMapView
;
typedef
enum
{
typedef
enum
:
short
{
nodeTypeLeaf
,
nodeTypeNode
}
RMQuadTreeNodeType
;
...
...
MapView/Map/RMTileCache.h
View file @
d68b057
...
...
@@ -32,7 +32,7 @@
@class
RMTileImage
,
RMMemoryCache
;
typedef
enum
{
typedef
enum
:
short
{
RMCachePurgeStrategyLRU
,
RMCachePurgeStrategyFIFO
,
}
RMCachePurgeStrategy
;
...
...
MapView/MapView.xcodeproj/project.pbxproj
View file @
d68b057
...
...
@@ -747,7 +747,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 04
2
0;
LastUpgradeCheck = 04
5
0;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MapView" */;
compatibilityVersion = "Xcode 3.2";
...
...
Please
register
or
login
to post a comment