{ "id": "170449", "key": "TIMOB-25567", "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": [], "resolution": null, "resolutiondate": null, "created": "2017-11-24T11:22:10.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "engSchedule", "map", "mapView" ], "versions": [ { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" }, { "id": "20791", "name": "Release 8.0.2", "archived": false, "released": true, "releaseDate": "2019-06-18" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-07-30T15:39:49.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When using customView property on an Annotation which contains an ImageView and a Label, the first time you open the app you won't see the image. If you go back and open the map again, the images will show.\r\n\r\nI uploaded a couple of files. One of them is a video showing the bug, the other one is a test case project (remember to change google maps API_KEY on tiapp.xml).", "attachment": [ { "id": "63687", "filename": "bug_map_customview.mov", "author": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "created": "2017-11-24T11:14:31.000+0000", "size": 9639473, "mimeType": "video/quicktime" }, { "id": "63686", "filename": "BugMapTest.zip", "author": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "created": "2017-11-24T11:14:31.000+0000", "size": 10013298, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: customView of Map.Annotation won't show the first time app runs if it has an image", "creator": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "subtasks": [], "reporter": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "environment": "Titanium SDK 6.3.0\r\n\r\nTested on:\r\n- BQ Aquarius E5 4G, Android 5.1 (device)\r\n- Nexus 5X, Android 7.1.0 (emulator)\r\n- Nexus 9, Android 7.1.0 (emulator)", "closedSprints": [ { "id": 997, "state": "closed", "name": "2018 Sprint 03 SDK", "startDate": "2018-01-28T16:23:12.178Z", "endDate": "2018-02-11T16:23:00.000Z", "completeDate": "2018-02-12T04:22:49.354Z", "originBoardId": 114 }, { "id": 990, "state": "closed", "name": "2018 Sprint 02 SDK", "startDate": "2018-01-14T22:48:43.544Z", "endDate": "2018-01-28T22:48:00.000Z", "completeDate": "2018-01-29T16:22:42.911Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "431265", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~gfigueras],\r\n\r\nThanks for sharing with us. We have tested the issue on HUAWEI GR3 2017 using SDK 6.3.0.GA with the sample project provided by you but unable to produce the issue. When we press \"Click here\" the pages shows nothing. Only a white blank [page|https://s19.postimg.org/7yn43ze9v/imgpsh_fullsize2.jpg] is visible. Please share us a complete reproducible test case to reproduce the issue on our end.\r\n\r\nThanks", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-11-26T08:31:24.000+0000", "updated": "2017-11-26T08:31:24.000+0000" }, { "id": "431285", "author": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "body": "That's because you have to use your own google maps API key https://i.imgur.com/KeCVm3y.png\r\n\r\nhttp://docs.appcelerator.com/platform/latest/#!/guide/Google_Maps_v2_for_Android-section-src-36739898_GoogleMapsv2forAndroid-ObtainandAddaGoogleAPIKey", "updateAuthor": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "created": "2017-11-27T08:38:47.000+0000", "updated": "2017-11-27T08:38:47.000+0000" }, { "id": "433300", "author": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "body": "Well, I came up with a solution for the images not showing, just in case someone is facing the same problem.\r\n\r\nAt first I was adding an ImageView and a Label inside a View, which was the customView of the Annotation, but now instead of doing that, I'm doing this:\r\n{code:javascript}\r\nvar view = Ti.UI.createView({\r\n\theight: \"40dp\",\r\n\twidth: \"25dp\",\r\n\tbackgroundImage: \"/images/pin_red.png\"\r\n});\r\n\t\t\r\nvar number = Ti.UI.createLabel({\r\n\ttext: (i+1),\r\n\ttop: \"10%\"\r\n});\r\n\t\t\r\nview.add(number);\r\n\t\t\r\nvar annotation = MapModule.createAnnotation({\r\n latitude : legs[i].start_location.lat,\r\n longitude : legs[i].start_location.lng,\r\n title: legs[i].start_address,\r\n id : i,\r\n customView: view\r\n});\r\n{code}\r\n\r\nAnyways, customView property isn't working properly if you add an ImageView to it.", "updateAuthor": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "created": "2018-01-18T12:01:06.000+0000", "updated": "2018-01-18T12:01:06.000+0000" }, { "id": "433316", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This should be fixed by https://github.com/appcelerator-modules/ti.map/releases/tag/android-4.1.1", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-18T22:32:14.000+0000", "updated": "2018-01-18T22:32:14.000+0000" }, { "id": "433328", "author": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "body": "I tried the old code (the one attached to the ticket) with the new ti.map version but the bug is still there.", "updateAuthor": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "created": "2018-01-19T08:59:44.000+0000", "updated": "2018-01-19T08:59:44.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }