{ "id": "109769", "key": "TIMOB-12755", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15272", "description": "2013 Sprint 04 API", "name": "2013 Sprint 04 API", "archived": true, "released": true, "releaseDate": "2013-02-25" }, { "id": "14814", "description": "2013 Sprint 04", "name": "2013 Sprint 04", "archived": true, "released": true, "releaseDate": "2013-02-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-21T00:30:14.000+0000", "created": "2013-02-15T19:12:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T01:19:54.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "1. Missing a constant to set the HYBRID_TYPE. As a workaround, I can set the mapType to 4 and it works. See code below.\r\n\r\nConstant is listed and used as an example in these links:\r\nhttps://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/GoogleMap\r\nhttps://developers.google.com/maps/documentation/android/map?hl=en#change_the_map_type\r\n\r\n2. The regionchanged event does not fire when changing zoom level or moving the map around as with the previous Ti.Map module.\r\n\r\n\r\n{code}\r\nvar MapModule = require('ti.map');\r\n \r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\n\r\nvar mapview = MapModule.createView({\r\n mapType: 4,\r\n region: {latitude: 37.389569, longitude: -122.050212, latitudeDelta: 0.1, longitudeDelta: 0.1}\r\n});\r\n\r\nfunction report (e) {\r\n\tTi.API.info('mapview:' + e.type);\r\n}\r\n\r\nmapview.addEventListener('regionchanged', report);\r\nmapview.addEventListener('postlayout', report);\r\nmapview.addEventListener('complete', report);\r\n\r\nwin.add(mapview);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Support HYBRID_TYPE constant and regionchanged event on Maps v2 Module", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS X 10.7.5\r\nTitanium SDK version: 3.1.0 (02/11/13 17:10 68a0fef)\r\nti.map 2.0 module\r\nAndroid 4.2\r\nNexus 4", "comment": { "comments": [ { "id": "238856", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Additional test case for 'regionchanged' event: \r\n{code}\r\nvar MapModule = require('ti.map');\r\nvar win = Ti.UI.createWindow({fullscreen: false});\r\n\r\nvar map = MapModule.createView({\r\n\tuserLocation: true,\r\n\tmapType: MapModule.HYBRID_TYPE,\r\n\tregion: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, //Sydney\r\n});\r\n\r\nmap.addEventListener('regionchanged', function(e) {\r\n\tTi.API.info(\"Latitude: \" + e.latitude);\r\n\tTi.API.info(\"Longitude: \" + e.longitude);\r\n\tTi.API.info(\"Type: \" + e.type);\r\n\r\n});\r\n\r\nwin.add(map);\r\nwin.open();\r\n{code}\r\n1. Run code, move the map around, check logs.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-19T00:05:20.000+0000", "updated": "2013-02-19T00:06:44.000+0000" }, { "id": "238858", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_modules/pull/81", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-19T00:42:48.000+0000", "updated": "2013-02-19T00:42:48.000+0000" }, { "id": "410207", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T01:19:54.000+0000", "updated": "2017-03-09T01:19:54.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }