Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12448

Mobile Web: Crash on Titanium.Map.View.selectAnnotation() call

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: MobileWeb
    • Labels:
    • Environment:

      mobilesdk-3.0.1.v20130114133207-win32.zip

      Description

      Problem description
      Titanium.Map.View.selectAnnotation() call throws in a simple usage scenario. In SDK 3.0.0, the crash does not occur.

      Steps to reproduce
      1. Create Titanium.Map
      2. Add annotation
      3. Immediately select the annotation.

      Actual behavior
      Crash ("Cannot call method 'push' of undefined").

      Example

      var mountainView = Titanium.Map.createAnnotation({
      	    latitude:37.390749,
      	    longitude:-122.081651,
      	    title:"Movable Annotation",
      	    subtitle:'draggable:true',
      	    pincolor:Titanium.Map.ANNOTATION_RED,
      	    animate:true,
      	    draggable:true,
      	    leftButton: '../images/appcelerator_small.png',
      	    myid:1 // Custom property to uniquely identify this annotation.
      	});	
      	
      	var mapview = Titanium.Map.createView({
      		mapType: Titanium.Map.STANDARD_TYPE,
      		region: {latitude:37.39, longitude:-122.08, 
                  latitudeDelta:0.01, longitudeDelta:0.01},
      		animate:true,
      		regionFit:true,
      		userLocation:true
      	});
       
      	mapview.addAnnotation(mountainView);
      	mapview.selectAnnotation(mountainView);  // Uncaught TypeError: Cannot call method 'push' of undefined at /index.html (line 9930)
      

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              aodukha Anatoliy Odukha
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15446
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration