[TIMOB-4499] mapview touch* events prevent map region from being moved
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-12T18:36:35.000+0000 |
Affected Version/s | Release 1.7.1 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Paul Dowsett |
Assignee | Ingo Muschenetz |
Created | 2011-06-27T06:15:01.000+0000 |
Updated | 2017-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!!! ************");
Closing ticket due to the time passed and lack of progress since the opening of the ticket. Any problems, please file a new ticket.