[TIMOB-10050] iOS: Map Annotation - titleid property for Ti.Map.Annotation does not update
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 2.1.1, Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api, qe-ios070112 |
Reporter | Olga Romero |
Assignee | Unknown |
Created | 2012-07-19T18:20:18.000+0000 |
Updated | 2018-02-28T20:04:19.000+0000 |
Description
This is not a regression, occurs on 2.1.0
Steps to reproduce:
1: create a project, put the code from the example strings.xml file below in "/i18n/en/strings.xml"
2: run the example code below
3: click on the annotation
4: notice that the title does not update
app.js
var win1 = Ti.UI.createWindow();
win1.title = 'id:string';
win1.backgroundColor = '#fff';
var defaultPin1 = Titanium.Map.createAnnotation({
latitude:37.390749,
longitude:-122.081651,
titleid:'title',
subtitleid:'subtitle',
animate:true,
myid:3,
pincolor:Titanium.Map.ANNOTATION_GREEN
});
var mapview1 = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
region: {latitude:37.337681,longitude:-122.038193, latitudeDelta:1, longitudeDelta:2},
animate:true,
regionFit:true,
userLocation:false,
annotations:[defaultPin1]
});
// Test updating the locale properties.
mapview1.addEventListener('click', function() {
setTimeout(function() {
defaultPin1.titleid = "updatedtitle";
defaultPin1.subtitle = "Updated Subtitle";
}, 3000);
});
win1.add(mapview1);
win1.open();
string.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="title">My Title</string>
<string name="subtitle">My Subtitle</string>
<string name="updatedtitle">Updated Title</string>
</resources>
Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0