[TIMOB-4500] with the exception of the loading, complete and regionChanged events, most mapview events do not fire
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-21T22:00:15.000+0000 |
Affected Version/s | Release 1.7.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Paul Dowsett |
Assignee | Ingo Muschenetz |
Created | 2011-06-27T06:24:12.000+0000 |
Updated | 2017-06-21T22:00:15.000+0000 |
Description
The following code demonstrates that only loading, complete and regionChanged events fire,
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('click', function(){
Ti.API.info("******* click event fired!!! ************");
});
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!!! ************");
});
mapview.addEventListener('touchcancel', function(){
Ti.API.info("******* touchcancel event fired!!! ************");
});
mapview.addEventListener('complete', function(){
Ti.API.info("******* complete event fired!!! ************");
});
mapview.addEventListener('dblclick', function(){
Ti.API.info("******* dblclick event fired!!! ************");
});
mapview.addEventListener('doubletap', function(){
Ti.API.info("******* doubletap event fired!!! ************");
});
mapview.addEventListener('error', function(){
Ti.API.info("******* error event fired!!! ************");
});
mapview.addEventListener('loading', function(){
Ti.API.info("******* loading event fired!!! ************");
});
mapview.addEventListener('singletap', function(){
Ti.API.info("******* singletap event fired!!! ************");
});
mapview.addEventListener('swipe', function(){
Ti.API.info("******* swipe event fired!!! ************");
});
mapview.addEventListener('twofingertap', function(){
Ti.API.info("******* twofingertap event fired!!! ************");
});
Closing ticket due to time passed and lack of progress for a number of years. Any problems, please file a new ticket.