[TIMOB-5397] iOS: subtitleid and titleid properties for Ti.Map.Annotation do not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-05T21:23:21.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | Sprint 2011-44, Sprint 2011-46, Release 1.8.0.1 |
Components | iOS |
Labels | module_map, qe-testadded |
Reporter | Jon Alter |
Assignee | Sabil Rahim |
Created | 2011-09-30T16:16:00.000+0000 |
Updated | 2014-06-19T12:46:12.000+0000 |
Description
Documentation says that subtitleid and titleid can be use to reference the key in the locale file. It does not work as expected.
http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Map.Annotation-object
/i18n/en/strings.xml" (make the strings.xml file and folders if necessary)
Step 2: run the example code below
Step 3: click on the anotation
Step 4: notice that subtitle does not show
Repro Steps
Step 1: put the code from the example strings.xml file below in "
var win = Ti.UI.createWindow({
backgroundColor:"#fff",
title:"My App"
});
win.open();
var Ti_ann_defaultPin = Titanium.Map.createAnnotation({
latitude:37.390749,
longitude:-122.081651,
title:L('title'),
// subtitle:L('subtitle'),
// titleid:"title",
subtitleid:'subtitle',
animate:true,
myid:3 // CUSTOM ATTRIBUTE THAT IS PASSED INTO EVENT OBJECTS
});
var mapview = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
region: {latitude:37.337681,longitude:-122.038193, latitudeDelta:0.01, longitudeDelta:0.01},
animate:true,
regionFit:true,
userLocation:true,
annotations:[Ti_ann_defaultPin]
});
win.add(mapview);
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="title">My Title.</string>
<string name="subtitle">My Subtitle</string>
</resources>
pull pending #643
Please clean up the build warnings.
Bug fixed. Verified on: SDK: 1.8.0.1.v20111212014614 Studio: 1.0.7.201112120322 OS: OS X Lion Devices Tested: iPhone/iPad Simulator 4.3
Added label qe-port.
Reopening issue to add tag