Skip to content

Commit

Permalink
Restored Maki image names
Browse files Browse the repository at this point in the history
Followup to #41.
  • Loading branch information
1ec5 committed May 22, 2016
1 parent a137fb0 commit 51808f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MapboxGeocoder/MBPlacemark.swift
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ public class GeocodedPlacemark: Placemark {
return categoryList?.componentsSeparatedByString(", ")
}

public override var imageName: String? {
return propertiesJSON["maki"] as? String
}

override var formattedAddressLines: [String] {
let lines = qualifiedName.componentsSeparatedByString(", ")
return scope == .Address ? lines : Array(lines.suffixFrom(1))
Expand Down

0 comments on commit 51808f6

Please sign in to comment.