{ "id": "77354", "key": "TIMOB-4552", "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": "11364", "description": "Mobile 1.8.0 M11", "name": "Sprint 2011-32", "archived": true, "released": true, "releaseDate": "2011-08-15" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-08-12T14:11:12.000+0000", "created": "2011-07-05T10:32:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_map", "qe-testadded" ], "versions": [ { "id": "11367", "description": "", "name": "Release 1.7.1", "archived": true, "released": true, "releaseDate": "2011-06-21" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:12.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": "h3. Feature\r\nThis is a feature request to add z-index to the mapview's annotations and routes.\r\n\r\nh3. Problem\r\nWhen annotations and routes come together, it is unpredictable which one will be on top.\r\n\r\nh3. Example Code\r\n\r\nThis is an example code from the customer requesting this feature\r\n\r\n{code}\r\nvar testapp = {};\r\ntestapp.UI = {};\r\n\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\n(function() {\r\n\t\r\n\t// Googles polyline decoder\r\n\tfunction decodeLine(encoded) {\r\n\t var len = encoded.length;\r\n\t var index = 0;\r\n\t var array = [];\r\n\t var lat = 0;\r\n\t var lng = 0;\r\n\t\r\n\t while (index < len) {\r\n\t var b;\r\n\t var shift = 0;\r\n\t var result = 0;\r\n\t do {\r\n\t b = encoded.charCodeAt(index++) - 63;\r\n\t result |= (b & 0x1f) << shift;\r\n\t shift += 5;\r\n\t } while (b >= 0x20);\r\n\t var dlat = ((result & 1) ? ~(result >> 1) : (result >> 1));\r\n\t lat += dlat;\r\n\t\r\n\t shift = 0;\r\n\t result = 0;\r\n\t do {\r\n\t b = encoded.charCodeAt(index++) - 63;\r\n\t result |= (b & 0x1f) << shift;\r\n\t shift += 5;\r\n\t } while (b >= 0x20);\r\n\t var dlng = ((result & 1) ? ~(result >> 1) : (result >> 1));\r\n\t lng += dlng;\r\n\t\r\n\t array.push([lat * 1e-5, lng * 1e-5]);\r\n\t }\r\n\t\r\n\t return array;\r\n\t}\r\n\r\n\t\r\n\ttestapp.UI.createPlaceMap = function(/*Object*/ _args) {\r\n\t var v;\r\n\t\tv = Titanium.Map.createView({\r\n\t\t\tmapType: _args.mapType||Titanium.Map.STANDARD_TYPE,\r\n\t\t\tregion: {\r\n\t\t\t\tlatitude: _args.latitude||57.6790883208692,\r\n\t\t\t\tlongitude: _args.longitude||11.987113952636719,\r\n\t\t\t\tlatitudeDelta: _args.latitudeDelta||0.015,\r\n\t\t\t\tlongitudeDelta: _args.longitudeDelta||0.015\r\n\t\t\t},\r\n\t\t\ttop: _args.top||0, //200+60,\r\n\t\t\tleft: _args.left||0,\r\n\t\t\twidth: _args.width||'100%',\r\n\t\t\theight: _args.height||'100%',\r\n\t\t\tanimate:true,\r\n\t\t\tuserLocation:true,\r\n\t\t\tregionFit:true\r\n\t\t});\r\n\r\n\t\tfunction annotationClick(_e) {\r\n\t\t\tswitch(_e.clicksource) {\r\n\t\t\t\tcase \"rightButton\":\r\n\t\t\t\tcase \"title\":\r\n\t\t\t\tcase \"annotation\":\r\n\t\t\t\t\tv.fireEvent('annotationClick', { annotation: _e.annotation });\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tvar rp = [];\r\n\t\tvar polyline = \"gx}~IaxhhA_AHKsDW[A_A}DbAwVjB_O`GaEjBqClBsDtDeCjDsC~EwArBsB~BcBxAwFpDOiBkV`OJ`Ed@fDuG~Da@wDm@d@uClC_DvFUTSaAgDlEyHpHcJ~Jg@Fg@]c@sDb@rDf@\\\\f@GeBvByB~DyFnGsJxJ}Ax@w@RZNH`@_@vBiGhSyCvH~DfMp@kAq@jAnDfLjEzDf@@|BkAd@^~@hDpBzNlD_Bj@Ox@EZT`J~@j@A\\\\ZbAm@`@xAvHgJhCuDxJ_JkAqH]o@RUTs@\\\\yBu@wOMEGmBnFcB|Cm@dHa@\\\\D]EkG\\\\YsHnE}G`Bm@tHyAThBTh@PJrAPzF|GfA\\\\lBLNYTGBaJVqFh@cBrAaBdBmGxAgHxDuWz@qCLuCe@cEe@eBN_@N{BvAmFbByEmBuKyAiM`JcIxIsCSoDfDmBzCc@xK_AfEStC_@b@PLRHzClAM\";\r\n\t\tvar polylineArray = decodeLine(polyline);\r\n\t\tfor(var i=0; i