Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

only hyphenate various fields when necessary #166

Merged
merged 1 commit into from

2 participants

@incanus

Just a couple minor tweaks to the MBTiles backend for better formatting. Without this, if you're missing various metadata in a file, the formatting can come out weird.

@michaeltyson michaeltyson merged commit 88a476d into route-me:master
@t2wu t2wu referenced this pull request from a commit
@incanus incanus refs #166: passthrough calloutOffset f8f5a33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 7, 2012
  1. @incanus
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 MapView/Map/RMMBTilesTileSource.m
View
4 MapView/Map/RMMBTilesTileSource.m
@@ -307,7 +307,7 @@ - (NSString *)longDescription
[results close];
- return [NSString stringWithFormat:@"%@ - %@", [self shortName], description];
+ return [NSString stringWithFormat:@"%@%@%@", [self shortName], ([[self shortName] length] && [description length] ? @" - " : @""), description];
}
- (NSString *)shortAttribution
@@ -328,7 +328,7 @@ - (NSString *)shortAttribution
- (NSString *)longAttribution
{
- return [NSString stringWithFormat:@"%@ - %@", [self shortName], [self shortAttribution]];
+ return [NSString stringWithFormat:@"%@%@%@", [self shortName], ([[self shortName] length] && [[self shortAttribution] length] ? @" - " : @""), [self shortAttribution]];
}
- (void)removeAllCachedImages
Something went wrong with that request. Please try again.