{ "id": "115688", "key": "ALOY-694", "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": "15672", "description": "2013 Sprint 20", "name": "2013 Sprint 20", "archived": true, "released": true, "releaseDate": "2013-10-04" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-10-02T17:43:09.000+0000", "created": "2013-06-07T21:12:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-22T13:21:31.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": [], "description": "As a developer, I would like to be able to use Alloy views and styles when adding maps to my Android app that implement the Google Maps v2 add-on module. I understand that I would still need to manually perform the other required steps for using this module (obtaining the API key and updating my tiapp.xml). But I'd like to use the tag as with Ti.Map so that I can add a map to my cross-platform app without doing the iOS map in XML and the Android map in the controller.\r\n\r\nLooking at the currently generated code:\r\n{code}\r\n $.__views.map = Ti.Map.createView({\r\n{code}\r\n\r\ncould be replaced with something like:\r\n{code}\r\n $.__mapmodule = require('ti.map');\r\n $.__views.map = $.__mapmodule.createView({\r\n{code}\r\n\r\nThere are platform-specific attributes, which can be handled with the existing platform-handling features in styles.\r\n\r\nh3. Enabling the Google Maps API v2 module\r\n\r\nFull explanation is at http://goo.gl/EBozL (Maps v2 guide)\r\n\r\nIn a nutshell, you must: \r\n\r\nh4. Obtain an API key from Google\r\n1. Get the SHA-1 fingerprint from your keystore\r\n2. Visit https://code.google.com/apis/console/\r\n3. Click Create Project or select project name, click Create\r\n4. In list of services, turn on Google Maps Android API v2\r\n5. Accept the terms of service\r\n6. Click API Access, then click Create New Android Key\r\n7. Paste in your SHA-1 fingerprint followed by a semicolon followed by your app's App ID\r\n8. Note the resulting \"Key for Android Apps (with certificates)\" -- that's your API key\r\n\r\nh4. Update tiapp.xml with your Key\r\n1. Visit http://goo.gl/EBozL (Maps v2 guide)\r\n2. Scroll to find \"Obtain and Add a Google API Key\"\r\n3. Copy the manifest XML code sample and paste into your tiapp.xml\r\n4. Paste your API key where indicated in that sample code\r\n5. Replace the two instances with your app's App ID\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Add support for Google Maps v2 add-on module", "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": "273409", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Android v2 maps can be used in markup as detailed in ALOY-817", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-30T17:44:12.000+0000", "updated": "2013-09-30T17:44:12.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }