Details

      Description

      {html}<div><h1>Feature</h1>
      <p>Implement the "addRoute" function for Android.</p>
      <h1>Sample Code</h1>
      <p>The following code works on iOS and draws a fun route in
      Boston.</p>
      <pre>
      <code class=
      "javascript">var win = Ti.UI.createWindow({ backgroundColor: '#00f' });
      var map = Titanium.Map.createView({
      mapType: Titanium.Map.STANDARD_TYPE,
      region: { latitude: 42.3366, longitude: -71.1689, latitudeDelta: 0.001, longitudeDelta: 0.004 }
      });
      map.addRoute({
      name: '1',
      points: [
      {latitude: 42.3353, longitude: -71.1705 },
      {latitude: 42.3383, longitude: -71.1690 },
      {latitude: 42.3358, longitude: -71.1670 },
      {latitude: 42.3353, longitude: -71.1705 }
      ],
      color: 'red',
      width: 4
      });
      map.addRoute({
      name: '2',
      points: [
      {latitude: 42.3363, longitude: -71.1682 },
      {latitude: 42.3370, longitude: -71.1686 },
      {latitude: 42.3369, longitude: -71.1692 },
      {latitude: 42.3366, longitude: -71.1695 },
      {latitude: 42.3361, longitude: -71.1690 },
      {latitude: 42.3368, longitude: -71.1685 }
      ],
      color: 'red',
      width: 4
      });
      win.add(map);
      win.open();</code>
      </pre>
      <h2>Associated Helpdesk Ticket</h2>
      <p><a href=
      "http://developer.appcelerator.com/helpdesk/view/76235">http://developer.appcelerator.com/helpdesk/view/76235</a></p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              dthorp Don Thorp
              Reporter:
              dtoth Dawson Toth
            • Watchers:
              2 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