Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4499] mapview touch* events prevent map region from being moved

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-12T18:36:35.000+0000
Affected Version/sRelease 1.7.1
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterPaul Dowsett
AssigneeIngo Muschenetz
Created2011-06-27T06:15:01.000+0000
Updated2017-06-12T18:36:35.000+0000

Description

The following code demonstrates that the map region cannot be changed when the touch* listeners are added. In addition to this, be aware of the related issues TIMOB-4497 and TIMOB-4498
Ti.UI.backgroundColor = "white";
var win = Ti.UI.createWindow({
  exitOnClose: true
});

var mapview = Ti.Map.createView({
  mapType: Ti.Map.STANDARD_TYPE,
  region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},
  animate:true,
  regionFit:true,
  userLocation:true
});
win.add(mapview);
win.open();

mapview.addEventListener('touchstart', function(){
  Ti.API.info("******* touchstart event fired!!! ************");
});
mapview.addEventListener('touchend', function(){
  Ti.API.info("******* touchend event fired!!! ************");
});
mapview.addEventListener('touchmove', function(){
  Ti.API.info("******* touchmove event fired!!! ************");
});
mapview.addEventListener('regionChanged', function(){
  Ti.API.info("******* regionChanged event fired!!! ************");

Comments

  1. Lee Morris 2017-06-12

    Closing ticket due to the time passed and lack of progress since the opening of the ticket. Any problems, please file a new ticket.

JSON Source