Titanium JIRA Archive
Appcelerator Community (AC)

[AC-801] iOS: Annotation not placed accurately when map is in scrollView (iOS 9)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2015-09-30T06:41:10.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterWilson Liaw
AssigneeShak Hossain
Created2015-09-07T11:46:06.000+0000
Updated2016-03-08T07:37:04.000+0000

Description

Annotation's location corrected after after applied properties. This only happened on iOS 9
var win = Titanium.UI.createWindow();
var sView = Ti.UI.createScrollView({
	scrollingEnabled : false
});
win.add(sView);
var Map = require('ti.map');

var mapview = Map.createView({
	mapType : Map.NORMAL_TYPE,
	region : {
		latitude : 37.390749,
		longitude : -122.081651,
		latitudeDelta : 0.01,
		longitudeDelta : 0.01
	},
	animate : false,
});
sView.add(mapview);

var ann = Map.createAnnotation({
	latitude : 37.390749,
	longitude : -122.081651,
	title : "Wrong"
});

mapview.addAnnotation(ann);
win.open();

mapview.selectAnnotation(ann);

_.delay(function() {
	ann.applyProperties({
		title : "Correct"
	});
}, 1000);

Comments

  1. Wilson Liaw 2015-09-15

    Please close this thread, the problem is solved on iOS 9 GM, thanks

JSON Source