Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12448] Mobile Web: Crash on Titanium.Map.View.selectAnnotation() call

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionWon't Fix
Resolution Date2017-05-01T22:35:12.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelslinvalid
ReporterAnatoliy Odukha
AssigneeChris Barber
Created2013-01-15T06:40:00.000+0000
Updated2018-04-04T23:20:42.000+0000

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

FileDateSize
TestMap.zip2013-01-15T06:40:00.000+0000816828

Comments

  1. Lee Morris 2017-05-01

    Resolving ticket as "Won't Fix" as MobileWeb is no longer supported.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source