Skip to content

Commit

Permalink
Merge pull request #29 from mapbox/1ec5-marker-label-unichar
Browse files Browse the repository at this point in the history
Use UniChar type for marker letters
  • Loading branch information
1ec5 committed May 16, 2016
2 parents 4677c68 + 7777001 commit 17f89a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MapboxStatic/Overlay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ public class Marker: NSObject, Point {
*/
public convenience init(coordinate: CLLocationCoordinate2D,
size: Size = .Small,
letter: String) {
assert(letter.characters.count == 1, "A marker can only fit one letter.")
self.init(coordinate: coordinate, size: size, label: .Letter(letter.characters.first!))
letter: UniChar) {
self.init(coordinate: coordinate, size: size, label: .Letter(Character(UnicodeScalar(letter))))
}

/**
Expand Down

0 comments on commit 17f89a0

Please sign in to comment.