{ "id": "148286", "key": "MOD-2145", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20176", "name": "Ti.Map iOS 3.1.0", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-03T07:41:47.000+0000", "created": "2015-05-28T11:36:04.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "mapView" ], "versions": [], "issuelinks": [ { "id": "56495", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "171604", "key": "MOD-2416", "fields": { "summary": "Ti.Map: Android - Support Image Overlays", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "50052", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "151652", "key": "MOD-2162", "fields": { "summary": "Image Overlay Support for ti.map for iOS and Android", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "50051", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "153647", "key": "MOD-2173", "fields": { "summary": "Support image overlays", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:49:33.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": "13700", "name": "Map" } ], "attachment": [ { "id": "65111", "filename": "image2.jpg", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-03T06:21:20.000+0000", "size": 264143, "mimeType": "image/jpeg" }, { "id": "55629", "filename": "imageOverlay.png", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2015-05-28T11:33:26.000+0000", "size": 123472, "mimeType": "image/png" }, { "id": "65112", "filename": "overlay_park.png", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-03T06:21:21.000+0000", "size": 618195, "mimeType": "image/png" }, { "id": "65113", "filename": "overlay_park@2x.png", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-03T06:21:21.000+0000", "size": 1118741, "mimeType": "image/png" } ], "flagged": false, "summary": "Ti.Map: iOS - Support Image Overlays", "creator": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "environment": "Ti.Map\r\nTi SDK 4.0.0.GA", "comment": { "comments": [ { "id": "429030", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "If someone can help with the Android part, I am willing to expose the iOS part for the next release.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-12T16:36:52.000+0000", "updated": "2017-10-12T16:36:52.000+0000" }, { "id": "437068", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "APIs for this in iOS and android can be like below. [~gmathews] [~jquick] Can you please confirm on this with help of https://developer.android.com/reference/com/google/android/gms/maps/model/GroundOverlay.html-\r\n{code:java}\r\n1. Creating image overlay -\r\n var imageOverlay = Map.createImageOverlay({\r\n boundsCoordinate: {\r\n topLeft:{ latitude: 34.4311, longitude: -118.6012 },\r\n bottomRight:{ latitude: 34.4194, longitude: -118.5912 },\r\n },\r\n image: 'overlay_park.png',\r\n });\r\n\r\n2. Add single image overlay -\r\n mapview.addImageOverlays(imageOverlay);\r\n\r\n3. Add multiple image overlay -\r\n mapview.addImageOverlays([imageOverlay1, imageOverlay2]);\r\n\r\n4. Remove single image overlay -\r\n mapview.removeImageOverlay(imageOverlay);\r\n\r\n5. Remove all image overlays -\r\n mapview.removeAllImageOverlays();\r\n\r\n{code}\r\n\r\nComplete test case -\r\n\r\n\r\n{code:java}\r\nvar Map = require('ti.map');\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar mountainView = Map.createAnnotation({\r\n latitude:34.4448,\r\n longitude:-118.5971,\r\n title:\"Appcelerator Headquarters\",\r\n subtitle:'Mountain View, CA',\r\n pincolor:Map.ANNOTATION_RED,\r\n myid:1 // Custom property to uniquely identify this annotation.\r\n});\r\n\r\nvar mapview = Map.createView({\r\n mapType: Map.STANDARD_TYPE,\r\n region: {latitude:34.4248, longitude: -118.5971,\r\n latitudeDelta:0.01, longitudeDelta:0.01},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true,\r\n annotations:[mountainView]\r\n});\r\n\r\nvar imageOverlay = Map.createImageOverlay({\r\n boundsCoordinate: {\r\n topLeft:{ latitude: 34.4311, longitude: -118.6012 },\r\n bottomRight:{ latitude: 34.4194, longitude: -118.5912 },\r\n },\r\n image: 'overlay_park.png',\r\n });\r\n\r\nvar imageOverlay1 = Map.createImageOverlay({\r\n boundsCoordinate: {\r\n topLeft:{ latitude: 34.4511, longitude: -118.6012 },\r\n bottomRight:{ latitude: 34.4394, longitude: -118.5912 },\r\n },\r\n image: 'image2.jpg',\r\n });\r\n\r\nmapview.addImageOverlays([imageOverlay, imageOverlay1]);\r\n//mapview.addImageOverlay(imageOverlay);\r\n setTimeout(function(e){\r\n Ti.API.info(\"inside timer\");\r\n //mapview.removeAllImageOverlays();\r\nmapview.removeImageOverlay(imageOverlay);\r\n }, 5000);\r\n\r\nwin.add(mapview);\r\n// Handle click events on any annotations on this map.\r\nmapview.addEventListener('click', function(evt) {\r\n Ti.API.info(\"Clicked \" + evt.clicksource + \" on \" + evt.latitude + \",\" + evt.longitude);\r\n});\r\nwin.open();\r\n\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-23T05:37:30.000+0000", "updated": "2018-04-24T05:19:14.000+0000" }, { "id": "437089", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (iOS) : https://github.com/appcelerator-modules/ti.map/pull/227", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-24T05:08:03.000+0000", "updated": "2018-04-24T05:08:03.000+0000" }, { "id": "437325", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "iOS has just been merged and released as Ti.Map iOS 3.1.0. Android parity will be tracked in MOD-2416.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-05-03T07:44:19.000+0000", "updated": "2018-05-03T07:44:19.000+0000" }, { "id": "440216", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:33.000+0000", "updated": "2018-08-06T17:49:33.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }