Titanium JIRA Archive
Appcelerator Community (AC)

[AC-282] Ti.map 2.3.# disables user input (swipe/pinch/etc) randomly with TiSDK 3.5.1

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2015-11-03T17:07:58.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsalloy, mapView, module
ReporterRene Pot
AssigneeRadamantis Torres-Lechuga
Created2015-08-03T18:20:57.000+0000
Updated2015-11-03T17:08:55.000+0000

Description

Ti.Map 2.3.# freezes (at least, that is what it appears to do) at random times. Sometimes it doesn't at all, sometimes it does after a long time, sometimes after a short time. It does however not really freeze, as it only doesn't allow for user input, like swiping, pinching and clicking. Things can still be manipulated programatically. Only way to let user input happen again is re-open the window Ti.Map is in, as in: removing and re-adding the map view. As described in Environment, it only appears to be happening with 2.3.# in combination with Ti SDK 3.5.1. Opened GitHub ticket for it too: [https://github.com/appcelerator-modules/ti.map/issues/112] Example is simple:
<View id="mapview" module="ti.map" />
In my case I have an annotation added, but this doesn't seem to have an effect.
    var annotation = Map.createAnnotation({
        image : icon || '/images/icon_map_scout.png',
        latitude : 52,
        longitude : 6,
        title : "test",
        subtitle : "test",
        canShowCallout: false
    });
    
    $.mapview.addAnnotation(annotation); 
Related tss:
"#mapview[platform=ios]": {
    width: Ti.UI.FILL,
    height: Ti.UI.FILL,
    compassButton: true,
    userLocation: true
}

Comments

  1. Radamantis Torres-Lechuga 2015-08-10

    [~topener] we can not reproduce this issue, please try also with the latest SDK and map module version.
  2. Rene Pot 2015-08-10

    Hi! As mentioned. It works with TiSDK 4+, and it doesn't bug out with Ti.Map 2.2.
  3. Radamantis Torres-Lechuga 2015-08-11

    [~topener] If this is not reproducible with the latest version, please migrate your app to use the latest SDK and latest Module version. Best

JSON Source