Authored by Justin R. Miller

default to MapBox watermarked map instead of OSM

... ... @@ -36,6 +36,9 @@
#import "RMMapView.h"
#import "RMPointAnnotation.h"
#define kMapBoxNormalMapID @"examples.map-z2effxa8"
#define kMapBoxRetinaMapID @"examples.map-zswgei2n"
@interface RMMapBoxSource ()
@property (nonatomic, retain) NSDictionary *infoDictionary;
... ... @@ -49,6 +52,11 @@
@synthesize infoDictionary=_infoDictionary, tileJSON=_tileJSON, imageQuality=_imageQuality, dataQueue=_dataQueue;
- (id)init
{
return [self initWithMapID:([[UIScreen mainScreen] scale] > 1.0 ? kMapBoxRetinaMapID : kMapBoxNormalMapID)];
}
- (id)initWithMapID:(NSString *)mapID
{
return [self initWithMapID:mapID enablingDataOnMapView:nil];
... ...
... ... @@ -38,10 +38,10 @@
#import "RMQuadTree.h"
#import "RMFractalTileProjection.h"
#import "RMOpenStreetMapSource.h"
#import "RMTileCache.h"
#import "RMTileSource.h"
#import "RMMapBoxSource.h"
#import "RMMapTiledLayerView.h"
#import "RMMapOverlayView.h"
... ... @@ -321,7 +321,7 @@
coordinate.latitude = kDefaultInitialLatitude;
coordinate.longitude = kDefaultInitialLongitude;
[self performInitializationWithTilesource:[[RMOpenStreetMapSource new] autorelease]
[self performInitializationWithTilesource:[[RMMapBoxSource new] autorelease]
centerCoordinate:coordinate
zoomLevel:kDefaultInitialZoomLevel
maxZoomLevel:kDefaultMaximumZoomLevel
... ... @@ -333,7 +333,7 @@
- (id)initWithFrame:(CGRect)frame
{
return [self initWithFrame:frame andTilesource:[[RMOpenStreetMapSource new] autorelease]];
return [self initWithFrame:frame andTilesource:[[RMMapBoxSource new] autorelease]];
}
- (id)initWithFrame:(CGRect)frame andTilesource:(id <RMTileSource>)newTilesource
... ...