Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18270] IOS : Clicking anywhere on the map with annotation showing, shows click source as annotation

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-10-18T12:53:06.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-3.5.0
ReporterLokesh Choudhary
AssigneeHans Knöchel
Created2014-12-19T21:54:34.000+0000
Updated2017-03-31T22:43:13.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. Replace the app.js of your app with the code below:
var MapModule = require('ti.map');
var win = Ti.UI.createWindow({
	backgroundColor:'white'
});

var annotations = [];

var annotation = MapModule.createAnnotation({
	latitude : 37.390749,
	longitude : -122.08165,
	title : "Annotation Test",
	pincolor : MapModule.ANNOTATION_RED,
	animate : true
});

annotations.push(annotation);

var map = MapModule.createView({
	mapType : MapModule.NORMAL_TYPE,
	region : {
		latitude : 37.390749,
		longitude : -122.08165,
		latitudeDelta : 0.5,
		longitudeDelta : 0.5
	},
	animate : false,
	regionFit : true,
	annotations : annotations
});

map.addEventListener('click', function(e) {
	alert("Click Source: "+e.clicksource);
});

win.add(map);
win.open();
2. Run on IOS device. 3. Launch the application. 4. Click on the annotation pin.

Actual Results:

1. You will see the annotation popup with an alert clicksource: pin. 2. Close the alert. 3. With the annotation showing click anywhere on the map. 4. You will see the annotation goes away & we get an alert clicksource: annotation.

Expected Result:

1. We should not get any alert with clicksource:annotation when clicked anywhere on the map but the annotation.

Comments

  1. Hans Knöchel 2016-10-18

    Using Ti.Map 2.8.0 and Titanium SDK 5.5.1.GA / 6.0.0 Beta / 6.1.0 master, I cannot reproduce this behavior anymore. When I click on the annotation, the source is "pin", when I click outside, the source is "map" as expected.
  2. Lee Morris 2017-03-31

    Closing ticket as "Cannot Reproduce", if you encounter any further problems please file a new ticket.

JSON Source