Authored by Hal Mueller

Added -trueScaleDenominator to RMMapContents. Modified CloudMade attribution str…

…ings. Tweaked Doxygen configuration.
... ... @@ -86,11 +86,11 @@
}
-(NSString *)shortAttribution
{
return @"© CloudMade.com";
return @"© 2009 CloudMade.com";
}
-(NSString *)longAttribution
{
return @"Map images © CloudMade.com. Original map data © OpenStreetMap, licensed under Creative Commons Share Alike By Attribution.";
return @"Map © CloudMade.com. Map data CCBYSA 2009 OpenStreetMap.org contributors.";
}
@end
... ...
... ... @@ -193,6 +193,9 @@ enum {
- (void) tilesUpdatedRegion:(CGRect)region;
/// the denominator in a cartographic scale like 1/24000, 1/50000, 1/2000000
- (double)trueScaleDenominator;
@end
@protocol RMMapContentsFacade
... ...
... ... @@ -827,6 +827,12 @@ static BOOL _performExpensiveOperations = YES;
return [projection pointToLatLong:[mercatorToScreenProjection projectScreenPointToXY:aPixel withScale:aScale]];
}
- (double)trueScaleDenominator {
double routemeMetersPerPixel = [self scale]; // really meters/pixel
double iphoneMillimetersPerPixel = .1543;
double truescaleDenominator = routemeMetersPerPixel / (0.001 * iphoneMillimetersPerPixel) ;
return truescaleDenominator;
}
#pragma mark Zoom With Bounds
- (void)zoomWithLatLngBoundsNorthEast:(CLLocationCoordinate2D)ne SouthWest:(CLLocationCoordinate2D)sw
... ...
... ... @@ -573,7 +573,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
# INPUT = /Users/hal/DevelopmentSandbox/route-me-dev/MapView
# INPUT = /Users/dimitri/doxygen/mail/1.5.7/doxywizard
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
... ... @@ -770,7 +770,7 @@ VERBATIM_HEADERS = YES
# of all compounds will be generated. Enable this if the project
# contains a lot of classes, structs, unions or interfaces.
ALPHABETICAL_INDEX = NO
ALPHABETICAL_INDEX = YES
# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
... ... @@ -986,7 +986,7 @@ ENUM_VALUES_PER_LINE = 4
# releases of Doxygen, the values YES and NO are equivalent to FRAME and NONE
# respectively.
GENERATE_TREEVIEW = NONE
GENERATE_TREEVIEW = ALL
# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
# used to set the initial width (in pixels) of the frame in which the tree
... ...