Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7208] iOS: map annotations do not animate in when the image property is set

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-05T03:41:07.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsiOS
Labelsmodule_map, parity, qe-testadded
ReporterJon Alter
AssigneeSabil Rahim
Created2012-01-16T11:23:34.000+0000
Updated2012-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();

Comments

  1. Wilson Luu 2012-03-15

    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)
  2. Anshu Mittal 2012-07-05

    Reopening to update labels

JSON Source