[AC-801] iOS: Annotation not placed accurately when map is in scrollView (iOS 9)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2015-09-30T06:41:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Wilson Liaw |
Assignee | Shak Hossain |
Created | 2015-09-07T11:46:06.000+0000 |
Updated | 2016-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);
Please close this thread, the problem is solved on iOS 9 GM, thanks