Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-7308

Android: Implement subtitleid and titleid properties for Ti.Map.Annotation

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 1.8.0.1, Release 2.0.0
    • Component/s: Android
    • Environment:

      SDK: 1.9.0.v20120118184633, 1.8.0.1
      Android: V8/Rhino
      Studio: 1.0.8
      OS: Lion
      Devices Tested: Galaxy Nexus 4.0.2, Nexus S 2.3.6

      Description

      subtitleid and titleid properties not displayed by annotation, just a null string.

      Steps to Reproduce:

      1. Run Code:

      app.js

      var win1 = Titanium.UI.createWindow({  
          title:'id:string',
          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 = "title2";
      		defaultPin1.subtitle = "Updated!";
      	}, 3000);
      });
       
      win1.add(mapview1);
      win1.open();
      

      2. Click Annotation.

      Expected Result:

      Annotation strings should display.
      After three seconds both the title and subtitle should get updated.
      Note: the annotation will disappear, just click it again to make it visible.
      This is a known Android bug and will be fixed in the future.

      Actual Result:

      Null strings display. Screenshot Attached.

      Note: The standard string values in the sample code do not work, nor do the localization strings from the related ios bug work (L('') or '' (shorthand)).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joshroesslein Josh Roesslein
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration