Map Annotation Height
I'm having an issue with my Map Annotations. I have a small image set as the leftButton, however its height is greater than the height of the annotation.
Is there any way to modify the height of the Map Annotation?
a = Titanium.Map.createAnnotation({
latitude: results['result'][i]['latitude'],
longitude: results['result'][i]['longitude'],
title: results['result'][i]['street_address'],
subtitle: results['result'][i]['city']['city_title'] + ', ' + results['result'][i]['city']['region_abbrev'],
pincolor: Titanium.Map.ANNOTATION_RED,
animate: true,
leftButton: results['result'][i]['images'][0]['small'],
listingid: results['result'][i]['id'],
rightButton: Ti.UI.iPhone.SystemButton.DISCLOSURE
});
3 Answers
-
The same happens to me. Using 1.7.2
Can't find the solution yet. -
Has any solution been found yet? I'm having the same issue.
-
I have only tried to add annotation with the help of the following code:
using System.IO; using System.Drawing.Printing; using Yiigo.Imaging; using Yiigo.Imaging.Processing; using Yiigo.Imaging.Annotation; // Create Annotation YiigoAnnotation Annotation = new YiigoAnnotation(); Annotation.Type = YiigoAnnotation.Type.Text; Annotation.TextData = "Yiigo"; Annotation.TextFont = New Font ("Arial", 10f, FontStyle. Regular); Annotation.BackgroundColor = Color.Red; Annotation.ShadowOffset = new PointF(2, 2); Annotation.Data.CanRotate = false; AnnotationController1.CreateAnnotation(Annotation);
I hope it helps.
Best regards,
Arron