[TIMOB-12448] Mobile Web: Crash on Titanium.Map.View.selectAnnotation() call
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Won't Fix |
| Resolution Date | 2017-05-01T22:35:12.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | MobileWeb |
| Labels | linvalid |
| Reporter | Anatoliy Odukha |
| Assignee | Chris Barber |
| Created | 2013-01-15T06:40:00.000+0000 |
| Updated | 2018-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
| File | Date | Size |
|---|---|---|
| TestMap.zip | 2013-01-15T06:40:00.000+0000 | 816828 |
Resolving ticket as "Won't Fix" as MobileWeb is no longer supported.
Closing as will not fix.