Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12413] iOS: Map annotation, leftView/rightView view child elements do not show up

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-13T22:32:12.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2013 Sprint 06 API, 2013 Sprint 06
ComponentsiOS
LabelsSupportTeam, parity, qe-port
ReporterBetty Tran
AssigneeSabil Rahim
Created2013-01-24T17:04:11.000+0000
Updated2013-03-25T21:49:33.000+0000

Description

Description

When adding a view containing other views to a Map annotation by setting the leftView or rightView properties, the child views do not show up.

Code to reproduce

var win = Ti.UI.createWindow();


var left = Ti.UI.createView({
	backgroundColor: 'pink',
	height: 32,
	width: 200,
	layout: 'horizontal'
})

var button = Ti.UI.createButton({
	height: 30,
	width: Ti.UI.SIZE,
	title: 'Button 1'
});

left.add(button);


var pin = Titanium.Map.createAnnotation({
    latitude:37.390749,
    longitude:-122.081651,
    title:"Appcelerator Headquarters",
    subtitle:'Mountain View, CA',
    pincolor:Titanium.Map.ANNOTATION_RED,
    animate:true,
    leftView: left
});		

var mapview = Titanium.Map.createView({
    mapType: Titanium.Map.STANDARD_TYPE,
    animate:true,
    regionFit:true,
    userLocation: false,
    annotations: [pin]
});	

win.add(mapview);
win.open();
To reproduce just click on the map annotation. The button is not displayed.

Comments

  1. Sabil Rahim 2013-03-13

    Cannot Reproduce on latest Master (3.1.0) buildHash : 2e0102b72cf70c6f8c79a88709a2fe172b2d973f
  2. Shyam Bhadauria 2013-03-14

    The issue is reproducible with 3.0.0.GA but its working fine with below mentioned build. Environment used for verification - Titanium SDK: 3.1.0.v20130313215655 Titanium  Studio:3.0.2.201302151605 Device: iPad Mini iOS 6.0

JSON Source