Closed dragonikpl closed 4 years ago
Tested on latest develop using cocoapods.
Code:
let location = MaplyCoordinate(x: 0.2, y: 0.2) let marker = MaplyScreenMarker() marker.image = UIImage(named: "blue-oval") marker.loc = location whirly.addScreenMarkers([marker], desc: nil) let label = MaplyScreenLabel() label.text = "Hello WORLD" label.loc = location let labelSettings: [String: Any] = [ kMaplyFont: UIFont.boldSystemFont(ofSize: 14), kMaplyTextColor: UIColor.red, kMaplyBackgroundColor: UIColor.green ] whirly.addScreenLabels([label], desc: labelSettings) whirly.setPosition(location, height: 0.5)
Output:
Issue is that text label is too high and not centered based on it's colored background position (it's too high).
Fixed in 3.0
Tested on latest develop using cocoapods.
Code:
Output:
Issue is that text label is too high and not centered based on it's colored background position (it's too high).