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
2013-10-18 17:56:08 -0700
Commit
c59aafd2ea0a020ca04d45bef5ed5ec8481f3cd4
1 parent
f2954afb
closes #291: merge in parts of @RubioV/RMBingSource-offline-crash-fix
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
MapView/Map/RMAbstractWebMapSource.m
MapView/Map/RMBingSource.h
MapView/Map/RMBingSource.m
MapView/Map/RMAbstractWebMapSource.m
View file @
c59aafd
...
...
@@ -85,7 +85,11 @@
NSArray
*
URLs
=
[
self
URLsForTile
:
tile
];
if
([
URLs
count
]
>
1
)
if
([
URLs
count
]
==
0
)
{
return
nil
;
}
else
if
([
URLs
count
]
>
1
)
{
// fill up collection array with placeholders
//
...
...
MapView/Map/RMBingSource.h
View file @
c59aafd
...
...
@@ -27,7 +27,7 @@
#import "RMAbstractWebMapSource.h"
typedef
enum
NSUInteger
{
typedef
enum
:
NSUInteger
{
RMBingImagerySetRoad
=
0
,
// default
RMBingImagerySetAerial
=
1
,
RMBingImagerySetAerialWithLabels
=
2
,
...
...
MapView/Map/RMBingSource.m
View file @
c59aafd
...
...
@@ -75,7 +75,10 @@
NSData
*
metadataData
=
[
NSData
brandedDataWithContentsOfURL
:
metadataURL
];
id
metadata
=
[
NSJSONSerialization
JSONObjectWithData
:
metadataData
options
:
0
error
:
nil
];
if
(
!
metadataData
)
return
nil
;
id
metadata
=
[
NSJSONSerialization
JSONObjectWithData
:
metadataData
options
:
0
error
:
NULL
];
if
(
metadata
&&
[
metadata
isKindOfClass
:[
NSDictionary
class
]]
&&
[[
metadata
objectForKey
:
@"statusCode"
]
intValue
]
==
200
)
{
...
...
Please
register
or
login
to post a comment