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
656c3c64f056795768eeb1e37b336e5a8c17a62e
1 parent
f5c1f6bf
merge fixes
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
32 deletions
MapView/Map/RMMapView.h
MapView/Map/RMTileSourcesContainer.m
MapView/Map/RMMapView.h
View file @
656c3c6
...
...
@@ -128,9 +128,6 @@ typedef enum : NSUInteger {
/** A custom image to use behind the map tiles. The default behavior is to show the default `backgroundView` and not a static image. */
-
(
void
)
setBackgroundImage
:(
UIImage
*
)
backgroundImage
;
/** A custom image to use behind the map tiles. The default behavior is to show the default `backgroundView` and not a static image. */
-
(
void
)
setBackgroundImage
:(
UIImage
*
)
backgroundImage
;
/** A Boolean value indicating whether to draw tile borders and z/x/y numbers on tile images for debugging purposes. Defaults to `NO`. */
@property
(
nonatomic
,
assign
)
BOOL
debugTiles
;
...
...
MapView/Map/RMTileSourcesContainer.m
View file @
656c3c6
...
...
@@ -98,35 +98,6 @@
#pragma mark -
-
(
void
)
setBoundingBoxFromTilesources
{
[
_tileSourcesLock
lock
];
_latitudeLongitudeBoundingBox
=
((
RMSphericalTrapezium
)
{
.
northEast
=
{.
latitude
=
90
.
0
,
.
longitude
=
180
.
0
},
.
southWest
=
{.
latitude
=
-
90
.
0
,
.
longitude
=
-
180
.
0
}
});
for
(
id
<
RMTileSource
>
tileSource
in
_tileSources
)
{
RMSphericalTrapezium
newLatitudeLongitudeBoundingBox
=
[
tileSource
latitudeLongitudeBoundingBox
];
_latitudeLongitudeBoundingBox
=
((
RMSphericalTrapezium
)
{
.
northEast
=
{
.
latitude
=
MIN
(
_latitudeLongitudeBoundingBox
.
northEast
.
latitude
,
newLatitudeLongitudeBoundingBox
.
northEast
.
latitude
),
.
longitude
=
MIN
(
_latitudeLongitudeBoundingBox
.
northEast
.
longitude
,
newLatitudeLongitudeBoundingBox
.
northEast
.
longitude
)},
.
southWest
=
{
.
latitude
=
MAX
(
_latitudeLongitudeBoundingBox
.
southWest
.
latitude
,
newLatitudeLongitudeBoundingBox
.
southWest
.
latitude
),
.
longitude
=
MAX
(
_latitudeLongitudeBoundingBox
.
southWest
.
longitude
,
newLatitudeLongitudeBoundingBox
.
southWest
.
longitude
)
}
});
}
[
_tileSourcesLock
unlock
];
}
#pragma mark -
-
(
NSArray
*
)
tileSources
{
NSArray
*
tileSources
=
nil
;
...
...
Please
register
or
login
to post a comment