[TIMOB-7208] iOS: map annotations do not animate in when the image property is set
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-05T03:41:07.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | iOS |
Labels | module_map, parity, qe-testadded |
Reporter | Jon Alter |
Assignee | Sabil Rahim |
Created | 2012-01-16T11:23:34.000+0000 |
Updated | 2012-07-05T11:23:53.000+0000 |
Description
When an annotation is added to a map, it does not animate in if the image property is used.
Steps to reproduce
Step 1: the the code below Step 2: click the button Step 3: notice that the annotation does not fall onto the map Step 4: remove image: " 'appicon.png' " and repeat the steps above Step 5: notice that the pin falls onto the map when it is added
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var button = Ti.UI.createButton({
title: 'Add Annotations',
top: 10,
left: 10,
height: 40,
width: 200
});
button.addEventListener('click', function(){
var mountainView = Titanium.Map.createAnnotation({
latitude:37.390749,
longitude:-122.081651,
title:"Appcelerator Headquarters",
subtitle:'Mountain View, CA',
animate: true,
image: 'appicon.png'
});
mapView.annotations = [mountainView];
});
var mapView = Titanium.Map.createView({
top: 50,
mapType: Titanium.Map.STANDARD_TYPE,
region:{latitude:37.390749,longitude:-122.081651,animate:true,latitudeDelta:0.04, longitudeDelta:0.04},
animate:true,
regionFit:true,
userLocation:true,
});
win.add(button);
win.add(mapView);
win.open();
Closing bug. Verified fix on: SDK build: 2.0.0.v20120315123246 Titanium Studio, build: 2.0.0.201203142055 xcode: 4.2 Device: iphone 4s (5.0.1)
Reopening to update labels