{ "id": "94528", "key": "TIMOB-9983", "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": "15274", "description": "2013 Sprint 06 API", "name": "2013 Sprint 06 API", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-10T17:26:28.000+0000", "created": "2012-07-06T11:45:23.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "community", "core", "exalture", "mapv2", "qe-testadded", "titanbeta", "triage" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-08-27T16:41:46.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": "h4.Problem\r\n\r\nThe annotations in a Map View can't find their *image* unless it is directly in the \\Resources\\android\\images\\ subdirectory. When multiple versions (sizes) of an image file are correctly placed in the density-specific subdirectories (\\Resources\\android\\images\\medium\\, \\Resources\\android\\images\\high\\, etc.), they cannot be found (aren't used), even after cleaning and rebuilding the project.\r\n\r\nh4.Expected behavior\r\nThe pin should show on the map.\r\n\r\nh4.Actual behavior\r\nNo pin shows on the map.\r\n\r\nh4.Testcase\r\nUse the attached test project, which contains the entire project directory structure. The app.js contents are also shown here for completeness:\r\n\r\n{panel:title=app.js}\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor:'#fff',\r\n exitOnClose:true,\r\n navBarHidden:true,\r\n layout:'vertical'\r\n});\r\n\r\nvar map1=Ti.Map.createView({\r\n mapType:Ti.Map.STANDARD_TYPE,\r\n animate:true,\r\n region:{latitude:37.423156, longitude:-122.084917,\r\n latitudeDelta:0.01, longitudeDelta:0.01},\r\n regionFit:true,\r\n annotations:[Ti.Map.createAnnotation({\r\n latitude:37.423156,\r\n longitude:-122.084917,\r\n image:'/images/MapPin.png'\r\n })],\r\n userLocation:true,\r\n height:Ti.UI.Fill\r\n });\r\nwin1.add(map1);\r\n\r\nvar square1=Ti.UI.createView({\r\n height:20,\r\n width:20,\r\n backgroundColor:'red',\r\n bottom:10,\r\n left:10\r\n });\r\nmap1.add(square1);\r\n\r\nwin1.open();\r\n{code}\r\n{panel}", "attachment": [ { "id": "29097", "filename": "MapViewSizeTest.zip", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-07-06T11:45:23.000+0000", "size": 31350, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Map View annotations can't see their image in density subdirectories", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "- Android 2.2 Google APIs emulator\r\n- Titanium Mobile SDK 2.1.0.GA\r\n- Titanium Studio 2.1.0.201206251749\r\n", "comment": { "comments": [ { "id": "227122", "author": { "name": "iamyellow", "key": "iamyellow", "displayName": "jordi domenech", "active": true, "timeZone": "Europe/Berlin" }, "body": "if somebody needs to make this work, it's very easy to resolve:\r\nhttps://github.com/iamyellow/titanium_mobile/commit/40040a0d981dfe196a9594a12612ba7d15bd9700", "updateAuthor": { "name": "iamyellow", "key": "iamyellow", "displayName": "jordi domenech", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-11-13T12:28:33.000+0000", "updated": "2012-11-13T12:28:33.000+0000" }, { "id": "241363", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/3943\r\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-08T18:42:03.000+0000", "updated": "2013-03-08T18:42:03.000+0000" }, { "id": "242570", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Modified code to incorporate review comments", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-16T05:46:36.000+0000", "updated": "2013-03-16T05:46:36.000+0000" }, { "id": "242803", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fix for Maps V2 module: https://github.com/appcelerator/titanium_modules/pull/92", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T23:22:44.000+0000", "updated": "2013-03-18T23:22:44.000+0000" }, { "id": "243656", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK: 3.1.0.v20130316201654\r\nStudio:3.1.0.201303091040\r\nDevice: Samgung galaxy note(v 2.3.6)", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-22T09:48:37.000+0000", "updated": "2013-03-22T09:48:37.000+0000" }, { "id": "273489", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening based on comments.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-01T14:53:40.000+0000", "updated": "2013-10-01T14:53:40.000+0000" }, { "id": "289096", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with SDK 3.2.0.GA and map module 2.1.2. The annotation image shows fine in density-specific directories (/Resources/android/images/high/applogo.png).\n{code}\nvar Map = require('ti.map');\n\nvar win = Ti.UI.createWindow();\n\nvar anno = Map.createAnnotation({\n\tlatitude : -33.87365,\n\timage : 'images/applogo.png',\n\tlongitude : 151.20689,\n\ttitle : \"Sydney\",\n\tsubtitle : \"Sydney is quite chill\",\n\tdraggable : true\n});\n\nvar map = Map.createView({\n\tuserLocation : true,\n\tmapType : Map.NORMAL_TYPE,\n\tanimate : true,\n\tannotations : [anno],\n\tregion : {\n\t\tlatitude : -33.87365,\n\t\tlongitude : 151.20689,\n\t\tlatitudeDelta : 0.1,\n\t\tlongitudeDelta : 0.1\n\t}, //Sydney\n\ttop : '50%'\n});\nTi.API.info(\"userLocation: \" + map.userLocation);\nwin.add(map);\n\nmap.addEventListener('click', function(e) {\n\tTi.API.info(\"Latitude: \" + e.latitude);\n\tTi.API.info(\"Source: \" + e.clicksource);\n});\n\nwin.open();\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-21T19:35:58.000+0000", "updated": "2014-01-21T19:35:58.000+0000" }, { "id": "292163", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-marking this as fixed based on [~pwang]'s comments. Please reopen if still an issue.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-10T17:26:28.000+0000", "updated": "2014-02-10T17:26:28.000+0000" }, { "id": "301237", "author": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Closing the issue as working as expected.\r\nMap View annotations is visible if their image is in density subdirectories\r\n\r\nTest Environment:\r\n\r\nAppc-Studio:3.2.3.201404151910\r\nsdk:3.2.3.v20140416151718\r\nacs:1.0.14\r\nalloy:1.3.1\r\nnpm:1.3.2\r\ntitanium:3.2.3-beta\r\ntitanium-code-processor:1.1.1-beta1\r\nxCODE:5.1.1\r\nDevice:Nexus7(v4.4.2)", "updateAuthor": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-17T11:11:10.000+0000", "updated": "2014-04-17T11:11:10.000+0000" }, { "id": "361439", "author": { "name": "cesar.cavazos", "key": "cesar.cavazos", "displayName": "Cesar Cavazos", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is still happening in my current current environment. \r\n\r\nAppc-Studio: 4.2.0.201508062204\r\nSDK: 4.1.0.GA\r\nalloy: 1.7.5\r\nnpm: 1.4.9\r\nEmulator: Genymotion Android 4.2.2 720X1280 320 dpi\r\nDevice: Nexus 4 Android 5.1.1 1280x768 320 dpi", "updateAuthor": { "name": "cesar.cavazos", "key": "cesar.cavazos", "displayName": "Cesar Cavazos", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-27T16:41:46.000+0000", "updated": "2015-08-27T16:41:46.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }