[TIMOB-5275] Map click events unreliable
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-10-07T11:24:42.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2011-39, Release 1.8.0 |
Components | iOS |
Labels | module_map, qe-testadded |
Reporter | Sandeep Bhimavarapu |
Assignee | Sabil Rahim |
Created | 2011-09-12T12:55:56.000+0000 |
Updated | 2014-06-19T12:46:38.000+0000 |
Description
Clicks events on map view are unreliable. When an annotation is clicked, the clicksource is being returned as 'null' instead of 'pin' sometimes (irregular). This is more profound at higher zoom levels (zoomed out).
Sample Code:
{noformat}
var win = Ti.UI.createWindow();
var latitude = 37.390749;
var longitude = -122.08165;
var annotations = [];
for (var i=0; i < 20; i++) {
var annotation = Titanium.Map.createAnnotation({
latitude:latitude + (0.02 * i),
longitude:longitude - (0.02 * i),
title:"Annotation Test",
pincolor: Titanium.Map.ANNOTATION_RED,
animate:true
});
annotations.push(annotation);
};
var map = Ti.Map.createView({
mapType: Ti.Map.STANDARD_TYPE,
region: {latitude: latitude, longitude: longitude, latitudeDelta: 0.5, longitudeDelta: 0.5},
animate: false,
regionFit: true,
annotations: annotations
});
map.addEventListener('click', function(e) {
alert(e);
});
win.add(map);
win.open();
{noformat}
pull pending #520
Pass: Tested with 1.8.0.1.v20111116185058 on iPad 2 4.3.5 iPod Touch 4.02 iPhone 4s 5.0