Skip to content

Commit

Permalink
Restored Maki image names
Browse files Browse the repository at this point in the history
Fixed a regression introduced in #41.
  • Loading branch information
1ec5 committed May 22, 2016
1 parent 6759a16 commit fa1b643
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 fa1b643

Please sign in to comment.