{ "id": "118810", "key": "ALOY-800", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" }, { "id": "15904", "description": "2014 Sprint 08", "name": "2014 Sprint 08", "archived": true, "released": true, "releaseDate": "2014-04-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-15T14:54:29.000+0000", "created": "2013-08-20T16:02:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "notable", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "37630", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "130385", "key": "MOD-1716", "fields": { "summary": "iOS: Map Camera is not draggable after starting the app", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "35164", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "126434", "key": "TIDOC-1537", "fields": { "summary": "Update Ti.Map Alloy example", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-05-13T23:03:45.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" }, { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "I would like to be able to add annotations to Android maps using the tag, and style them with the CSS. This will require a small change to store a reference to either the ti.map module or Ti.Map, for Android and iOS respectively.\r\n\r\nGiven this XML:\r\n{code}\r\n\r\n\r\n \r\n \r\n\r\n\r\n \r\n\r\n{code}\r\n\r\nThe generated code would need to create a reference to the appropriate module, like this:\r\n{code}\r\n/* Pseudo-code of the generated Resources/alloy/controllers/index.js */\r\n// need a reference to the map module\r\n$.__mapModule = (OS_ANDROID) require(\"ti.map\") : Ti.Map;\r\n// rest is pretty much the same, just using the map reference rather than Ti.Map explicitly\r\n$.__views.map = $.__mapModule.createView({\r\n region: {\r\n latitude: 37.38,\r\n latitudeDelta: .2,\r\n longitude: -122.05,\r\n longitudeDelta: .2\r\n },\r\n id: \"map\"\r\n});\r\n$.__views.win.add($.__views.map);\r\n$.__views.annotation1 = $.__mapModule.createAnnotation({\r\n title: \"Mountain View\",\r\n latitude: 37.389569,\r\n longitude: -122.050212,\r\n id: \"annotation1\"\r\n});\r\n{code}\r\n", "attachment": [ { "id": "45895", "filename": "MapsDemo.zip", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-13T17:03:43.000+0000", "size": 3702940, "mimeType": "application/zip" } ], "flagged": false, "summary": "Add support for within ", "creator": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "267325", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "There are some platform-specific properties and constants that rely on the reference to the module, e.g. mapType: MapModule.TERRAIN_TYPE, where MapModule is a user-generated reference to ti.map.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-08-20T16:33:52.000+0000", "updated": "2013-08-20T16:33:52.000+0000" }, { "id": "292928", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "test app attached", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-13T17:03:43.000+0000", "updated": "2014-02-13T17:03:43.000+0000" }, { "id": "292929", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR: https://github.com/appcelerator/alloy/pull/338\n\nTest app: use the attached\n\nFunctional test:\n\n1. Build the attached app for the iOS simulator or an Android device (or Genymotion emulator). This will not work on the stock Android emulator\n2. On iOS, the resulting app should have two maps, each with one annotation which are declared in the XML and styled in the TSS. The top map implements the iOS7 camera view. On Android, the app will have two maps, each with an annotation. Top map uses standard view type, the bottom map uses the terrain type.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-13T17:06:23.000+0000", "updated": "2014-02-13T17:06:23.000+0000" }, { "id": "304713", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified working as expected.\r\n\r\nTiSDK 3.3.0.v20140513115438\r\nAlloy 1.4.0-dev\r\nAppcelerator Studio 3.3.0.201405011408\r\nCLI 3.3.0-dev\r\n\r\nVerified using both testing/ALOY-800 and attached sample code. \r\n\r\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-13T22:56:28.000+0000", "updated": "2014-05-13T22:56:28.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }