{ "id": "150668", "key": "TIMOB-20092", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-07-17T13:29:54.000+0000", "created": "2015-08-25T06:05:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-6.0.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-23T13:51:22.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "In the Map module, there should be a method to return a static image of the map for the specified coordinates. Google Maps API has the capability ([Static API|https://developers.google.com/maps/documentation/staticmaps/intro]) and it seems the Apple Mapkit might also have the feature now. This request is fairly urgent and would be easier to implement, I hope.\r\nJust want to point out that the \"toImage()\" method isn't good enough. I'm trying to use it, and although it works fine for a previously loaded map, it doesn't work at all if I only have the coordinates in the code and want to get the image in the background without having to load the map view itself (which takes time).", "attachment": [], "flagged": false, "summary": "iOS: Need ability to generate static image of map for the specified coordinates", "creator": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 678, "state": "closed", "name": "2016 Sprint 14 SDK", "startDate": "2016-07-02T00:25:57.921Z", "endDate": "2016-07-16T00:25:00.000Z", "completeDate": "2016-07-18T03:18:29.729Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "378921", "author": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "body": "This issue is bigger for iOS, not Android. Please update this ticket to include iOS in the Component list.\r\n\r\nFor iOS, I'm asking you to include the following Apple SDK api:\r\nhttps://developer.apple.com/library/prerelease/ios/documentation/MapKit/Reference/MKMapSnapshotter_class/index.html\r\n\r\nFor Android, currently there exists a workaround to use Google Static Maps API, which might be better. So I'm not as concerned about it. Ideally, it would be better to have ONE module method regardless of the OS, so one doesn't have to create forks in code.", "updateAuthor": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-07T15:49:09.000+0000", "updated": "2016-03-07T15:49:09.000+0000" }, { "id": "379086", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks! Updated the ticket accordingly to support both platforms.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-08T00:00:32.000+0000", "updated": "2016-03-08T00:00:32.000+0000" }, { "id": "388222", "author": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "body": "Any status update on this feature? It's been just too long.", "updateAuthor": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "created": "2016-06-13T19:43:36.000+0000", "updated": "2016-06-13T19:43:36.000+0000" }, { "id": "388293", "author": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "body": "You got to be kidding me...it is planned for version 6.0.0? When will it be delivered? It's such a simple change.", "updateAuthor": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "created": "2016-06-14T15:20:48.000+0000", "updated": "2016-06-14T15:20:48.000+0000" }, { "id": "389529", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey [~parijatsahai], quality before quantity :-). We are currently working on the feature and will update ti.map as soon as it is finished - as usual. So you will be able to use it in both your current Titanium SDK version, as well as in the upcoming ones. I will ping you with updates asap.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-06-30T04:24:46.000+0000", "updated": "2016-06-30T04:24:46.000+0000" }, { "id": "390844", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~parijatsahai] Here you go: https://github.com/appcelerator-modules/ti.map/releases/tag/iOS-2.8.0\r\n\r\n*Demo*:\r\n{code:javascript}\r\nvar MapModule = require('ti.map');\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar Snapshotter = MapModule.createSnapshotter({\r\n mapType: MapModule.HYBRID_TYPE,\r\n region: {\r\n latitude: 37.3382,\r\n longitude: -121.8863,\r\n latitudeDelta: 0.4,\r\n longitudeDelta: 0.4\r\n },\r\n size: {\r\n width: 300,\r\n height: 200\r\n }\r\n});\r\n\r\nSnapshotter.takeSnapshot({\r\n success: function(e) {\r\n var imageView = Ti.UI.createImageView({\r\n image: e.image,\r\n });\r\n win.add(imageView);\r\n },\r\n error: function(e) {\r\n Ti.API.error(\"The snapshot could not be taken: \" + e.error);\r\n }\r\n});\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-17T13:31:02.000+0000", "updated": "2016-07-17T13:31:31.000+0000" }, { "id": "397042", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, tested the above demo code and changed the coordinates to specific locations and the resulting static image correctly reflected the input.\r\n\r\nTested On:\r\niPhone 6 Plus 10.0.1 Device & Simulator\r\niPhone 5S 9.3.5 Device\r\nTi.Map (2.8.0)\r\nMac OSX El Capitan 10.11.6\r\nTi SDK: 6.0.0.v20160922165510\r\nAppc Studio: 4.8.0.201609191928\r\nAppc NPM: 4.2.8-7\r\nApp CLI: 6.0.0-51\r\nXcode 8.0 \r\nNode v4.4.7\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-09-23T13:51:00.000+0000", "updated": "2016-09-23T13:51:00.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }