Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5275] Map click events unreliable

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-10-07T11:24:42.000+0000
Affected Version/sn/a
Fix Version/sSprint 2011-39, Release 1.8.0
ComponentsiOS
Labelsmodule_map, qe-testadded
ReporterSandeep Bhimavarapu
AssigneeSabil Rahim
Created2011-09-12T12:55:56.000+0000
Updated2014-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}

Comments

  1. Sabil Rahim 2011-10-03

    pull pending #520
  2. Natalie Huynh 2011-11-17

    Pass: Tested with 1.8.0.1.v20111116185058 on iPad 2 4.3.5 iPod Touch 4.02 iPhone 4s 5.0

JSON Source