Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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
            });

The Problem

— asked April 4th 2010 by Nicholas Sabatino
  • mobile
0 Comments

3 Answers

  • The same happens to me. Using 1.7.2
    Can't find the solution yet.

    — answered August 24th 2011 by Pablo Liz
    permalink
    0 Comments
  • Has any solution been found yet? I'm having the same issue.

    — answered March 31st 2012 by David Riggleman
    permalink
    0 Comments
  • 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

    — answered November 8th 2013 by arron lee
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.