Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18271] IOS: Clicking on annotation title & subtitle gives click source as rightbutton

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2015-08-13T03:16:18.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-3.5.0
ReporterLokesh Choudhary
AssigneeEric Merriman
Created2014-12-19T22:08:42.000+0000
Updated2017-03-20T22:29:41.000+0000

Description

This is not a regression.

||SDK||MAP MODULE||RESULT|| |3.5.0.v20141219075715|2.2.0|Fail |3.4.1|2.0.6|Fail |3.5.0.v20141219075715|2.0.6|Fail |3.4.1|2.2.0|Fail

Description:

1. Run the following code in your app.js:
var MapModule = require('ti.map');

var win = Ti.UI.createWindow({});

var atlantaParams = {
	latitude:33.74511,
	longitude:-84.38993,
	title:"Atlanta, GA",
	subtitle:'Atlanta Braves Stadium\nfoo',
	animate:true,
	rightButton: Titanium.UI.iPhone.SystemButton.DISCLOSURE,
	myid:3 // CUSTOM ATTRIBUTE THAT IS PASSED INTO EVENT OBJECTS
};

atlantaParams.pincolor = MapModule.ANNOTATION_PURPLE;

var atlanta = MapModule.createAnnotation(atlantaParams);

var mapview = MapModule.createView({
	mapType: MapModule.NORMAL_TYPE,
	region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},
	animate:true,
	regionFit:true,
	userLocation:true,
	annotations:[atlanta]
});

mapview.addEventListener("click", function(e) {
	var info = '\n';
	
	info += 'type: ' + e.type + '\n';
	info += 'clicksource: ' + e.clicksource + '\n';
	info += 'title: ' + e.title + '\n';
	info += 'index: ' + e.index + '\n';
	info += 'annotation: ' + e.annotation + '\n';
	info += 'map: ' + e.map + '\n';
	info += 'source: ' + e.source + '\n';
	
	Ti.API.info(info);
	alert(info);
});

mapview.addAnnotation(atlanta);

win.add(mapview);
win.open();
2. Launch the app. 3. Click on the annotation pin. 4. Click on the annotation title & subtitle.

Actual Result:

1. The click source for both annotation title & subtitle is shown as rightbutton in the alert.

Expected result:

1. The click source when clicked on annotation title & subtitle should not be rightbutton.

Comments

  1. Chee Kiat Ng 2015-08-13

  2. Lee Morris 2017-03-20

    Closing ticket as duplicate.

JSON Source