{ "id": "155869", "key": "TIMOB-20616", "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": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-03-23T05:36:40.000+0000", "created": "2016-03-21T21:19:08.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2017-03-30T21:08:45.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": [], "description": "h3. Steps to reproduce:\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\n\r\nwindow.open();\r\n\r\nvar mapModule = require('ti.map');\r\n\r\nvar map = mapModule.createView({\r\n\tbottom: 50\r\n});\r\n\r\n\r\n\r\nwindow.add(map);\r\n\r\n\r\nvar annotation1 = mapModule.createAnnotation({\r\n//title: '1',\r\nlatitude: 1,\r\nlongitude: 1,\r\npincolor: mapModule.ANNOTATION_AZURE\r\n})\r\n\r\nvar annotation2 = mapModule.createAnnotation({\r\nlatitude: 1,\r\nlongitude: 1,\r\npincolor: mapModule.ANNOTATION_RED\r\n});\r\n\r\nmap.addAnnotation(annotation1);\r\nmap.addAnnotation(annotation2);\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor: 'red',\r\n\tbottom: 0,\r\n\theight: 50,\r\n\twidth: 50,\r\n});\r\n\r\nview.addEventListener('click', function() { map.selectAnnotation(annotation1)})\r\nwindow.add(view);\r\n{code}\r\n\r\nh3. Actual results\r\nIf title is set than selectAnnotation function will work and pull Annotation to front. If title is not set than Annotation won't be pulled to front.\r\n\r\nh3. Expected results\r\nAnnotation after selectAnnotation() should be pulled to front no matter if it has title or not.", "attachment": [], "flagged": false, "summary": "If Map Module Annotation has no title, than selectAnnotation() won't work", "creator": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX,\r\nAndroid,\r\nGenyMotion Simulator", "comment": { "comments": [ { "id": "380470", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "This is a native behaviour of the Google Map for Android.\r\n\r\nWhen the module `selects` the annotation, one of the things it does is also to `showInfoWindow` which is used to show any title and also bring forward the marker/annotation that is being used. If there is no annotation title, it will not be brought forward.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-03-23T05:14:42.000+0000", "updated": "2016-03-23T05:14:42.000+0000" }, { "id": "380473", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "To get it to be `selected` you have to include a title.\r\n\r\nWill be resolving this as `Won't Fix` as that's the expected behaviour of that module.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-03-23T05:36:33.000+0000", "updated": "2016-03-23T05:36:33.000+0000" }, { "id": "416383", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\" with reference to previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-30T21:08:45.000+0000", "updated": "2017-03-30T21:08:45.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }