{ "id": "81647", "key": "TIMOB-5769", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-05-28T07:14:03.000+0000", "created": "2011-10-17T08:04:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "module_androidmapv2", "qe-manualtest", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [ { "id": "27228", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "62863", "key": "TIMOB-2231", "fields": { "summary": "iOS: Add the ability to add Vector Overlay on Maps", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-06-10T19:04:20.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": "h5.Feature Request\r\nTo add routes and allow for multiple polygons to be added to the MapView as well as have fill, opacity and color properties.\r\n\r\nh6.Utilities\r\nThat would allow developers to implement geofencing (see http://en.wikipedia.org/wiki/Geo-fence) a common technique for Android apps.\r\n\r\nh6.Customer notes\r\n\"We'd like to be able to hook into the events when a user enters and leaves a geo-fenced polygon or a radius around a geolocated point.\"", "attachment": [ { "id": "23739", "filename": "geofence01.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-10-17T08:04:06.000+0000", "size": 47052, "mimeType": "image/jpeg" }, { "id": "23740", "filename": "geofence02.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-10-17T08:04:06.000+0000", "size": 151942, "mimeType": "image/jpeg" }, { "id": "35445", "filename": "MapsIMG_0255.PNG", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-07T01:15:13.000+0000", "size": 227808, "mimeType": "image/png" }, { "id": "55251", "filename": "ti.map-android-2.3.1.zip", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-06T08:37:31.000+0000", "size": 3525184, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Add the ability to add multiple polygons to the MapView", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": " Product: Mobile\r\n Titanium SDK: Mobile 1.7.2\r\n Platform OS: Android\r\n Platform OS Version: 2.2", "closedSprints": [ { "id": 407, "state": "closed", "name": "2015 Sprint 11 SDK", "startDate": "2015-05-23T00:00:08.253Z", "endDate": "2015-06-06T00:00:00.000Z", "completeDate": "2015-06-08T16:18:16.381Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "237789", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can be fixed on Android Maps v2", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-08T20:04:41.000+0000", "updated": "2013-02-08T20:04:41.000+0000" }, { "id": "351759", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Test code app.js for PR that will be added here:\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nTi.Map = require('ti.map');\r\n\r\nvar self = Ti.UI.createWindow({\r\n\tbackgroundColor : '#800'\r\n});\r\n\r\n// create UI components\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor : '#800',\r\n});\r\n\r\nvar mapview;\r\n\r\n// add map after window opens\r\nself.addEventListener('open', function() {\r\n\t// Make sure we only add the map once\r\n\tif (mapview !== undefined) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tmapview = Titanium.Map.createView({\r\n\t\tmapType : Titanium.Map.NORMAL_TYPE,\r\n\t\tregion : {\r\n\t\t\tlatitude : 37.389569,\r\n\t\t\tlongitude : -122.050212,\r\n\t\t\tlatitudeDelta : 0.1,\r\n\t\t\tlongitudeDelta : 0.1\r\n\t\t},\r\n\t\tanimate : true,\r\n\t\tregionFit : true,\r\n\t\tuserLocation : false,\r\n\t\ttop : '70dp'\r\n\t});\r\n\r\n\t// Handle all map annotation clicks\r\n\tmapview.addEventListener('click', function(e) {\r\n\t\tif (e.annotation && (e.clicksource === 'leftButton' || e.clicksource == 'leftPane')) {\r\n\t\t\tmapview.removeAnnotation(e.annotation);\r\n\t\t}\r\n\t});\r\n\r\n\tvar appc = Ti.Map.createAnnotation({\r\n\t\tlatitude : 37.389569,\r\n\t\tlongitude : -122.050212,\r\n\t\ttitle : 'Appcelerator HQ',\r\n\t\tsubtitle : 'Mountain View, CA',\r\n\t\tpincolor : Ti.Map.ANNOTATION_GREEN\r\n\t});\r\n\r\n\tvar randLoc = Ti.Map.createAnnotation({\r\n\t\tlatitude : 37.389569,\r\n\t\tlongitude : -122.0855498,\r\n\t\ttitle : 'Random Location',\r\n\t\tsubtitle : 'Mountain View, CA',\r\n\t\tpincolor : Ti.Map.ANNOTATION_ORANGE\r\n\t});\r\n\r\n\tvar apple = Ti.Map.createAnnotation({\r\n\t\tlatitude : 37.331689,\r\n\t\tlongitude : -122.030731,\r\n\t\ttitle : 'Apple HQ',\r\n\t\tsubtitle : 'Cupertino, CA',\r\n\t\tpincolor : Ti.Map.ANNOTATION_RED\r\n\t});\r\n\tvar google = Ti.Map.createAnnotation({\r\n\t\tlatitude : 37.422502,\r\n\t\tlongitude : -122.0855498,\r\n\t\ttitle : 'Google HQ',\r\n\t\tsubtitle : 'Mountain View, CA',\r\n\t\tpincolor : Ti.Map.ANNOTATION_VIOLET\r\n\t});\r\n\tvar route = Ti.Map.createRoute({\r\n\t\twidth : 4,\r\n\t\tcolor : '#f00',\r\n\t\tpoints : [{\r\n\t\t\tlatitude : google.latitude,\r\n\t\t\tlongitude : google.longitude\r\n\t\t}, {\r\n\t\t\tlatitude : appc.latitude,\r\n\t\t\tlongitude : appc.longitude\r\n\t\t}, {\r\n\t\t\tlatitude : apple.latitude,\r\n\t\t\tlongitude : apple.longitude\r\n\t\t}, {\r\n\t\t\tlatitude : randLoc.latitude,\r\n\t\t\tlongitude : randLoc.longitude\r\n\t\t}]\r\n\t});\r\n\r\n\tvar polygon = Ti.Map.createPolygon({\r\n\t\tfillColor : '#30f0',\r\n\t\tpoints : [{\r\n\t\t\tlatitude : google.latitude,\r\n\t\t\tlongitude : google.longitude\r\n\t\t}, {\r\n\t\t\tlatitude : appc.latitude,\r\n\t\t\tlongitude : appc.longitude\r\n\t\t}, {\r\n\t\t\tlatitude : apple.latitude,\r\n\t\t\tlongitude : apple.longitude\r\n\t\t}, {\r\n\t\t\tlatitude : randLoc.latitude,\r\n\t\t\tlongitude : randLoc.longitude\r\n\t\t}]\r\n\t});\r\n\r\n\tvar circle = Ti.Map.createCircle({\r\n\t\tcenter : {\r\n\t\t\tlatitude : google.latitude,\r\n\t\t\tlongitude : google.longitude\r\n\t\t},\r\n\t\tradius : 3000,\r\n\t\tfillColor : '#3f00'\r\n\t});\r\n\r\n\tvar mapview = Ti.Map.createView({\r\n\t\tmapType : Ti.Map.NORMAL_TYPE,\r\n\t\tregion : {\r\n\t\t\tlatitude : 37.389569,\r\n\t\t\tlongitude : -122.050212,\r\n\t\t\tlatitudeDelta : 0.2,\r\n\t\t\tlongitudeDelta : 0.2\r\n\t\t},\r\n\t\tannotations : [google, appc, apple, randLoc]\r\n\t});\r\n\r\n\tmapview.addPolygon(polygon);\r\n\tmapview.addCircle(circle);\r\n\r\n\tself.add(mapview);\r\n});\r\n\r\n\r\nself.add(view);\r\n\r\nself.open();\r\n{code}\r\n\r\ntiapp.xml that was used (for android map api key):\r\n{code}\r\n\r\n\r\n com.testmap\r\n TestMap\r\n 1.0\r\n msamah\r\n http://\r\n \r\n 2015 by msamah\r\n appicon.png\r\n false\r\n false\r\n true\r\n bb886494-8822-4437-9ccc-869476a2f16d\r\n dp\r\n \r\n \r\n \r\n UISupportedInterfaceOrientations~iphone\r\n \r\n UIInterfaceOrientationPortrait\r\n \r\n UISupportedInterfaceOrientations~ipad\r\n \r\n UIInterfaceOrientationPortrait\r\n UIInterfaceOrientationPortraitUpsideDown\r\n UIInterfaceOrientationLandscapeLeft\r\n UIInterfaceOrientationLandscapeRight\r\n \r\n UIRequiresPersistentWiFi\r\n \r\n UIPrerenderedIcon\r\n \r\n UIStatusBarHidden\r\n \r\n UIStatusBarStyle\r\n UIStatusBarStyleDefault\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n true\r\n true\r\n \r\n default\r\n \r\n \r\n ti.map\r\n ti.map\r\n \r\n \r\n true\r\n true\r\n true\r\n true\r\n \r\n 4.0.0.v20150429154210\r\n 55499a092284ff862dbcfd92\r\n\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-06T06:36:31.000+0000", "updated": "2015-05-06T06:36:31.000+0000" }, { "id": "351767", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR: https://github.com/appcelerator-modules/ti.map/pull/93", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-06T08:36:25.000+0000", "updated": "2015-05-06T08:36:25.000+0000" }, { "id": "351885", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Closed PR 93 in favor of https://github.com/appcelerator-modules/ti.map/pull/86. Will be reviewing this PR.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-07T01:55:58.000+0000", "updated": "2015-05-07T01:55:58.000+0000" }, { "id": "353630", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Update: New PR: https://github.com/appcelerator-modules/ti.map/pull/99\r\n\r\nhttps://github.com/appcelerator-modules/ti.map/pull/86 is closed. Everything in PR86 was merged into 1 commit in PR99.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-27T08:37:02.000+0000", "updated": "2015-05-27T08:37:02.000+0000" }, { "id": "353753", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Binary update PR: https://github.com/appcelerator/titanium_mobile/pull/6881", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-28T07:24:14.000+0000", "updated": "2015-05-28T07:24:14.000+0000" }, { "id": "354792", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the feature. We can add ploygon's & circle's on to mapview.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.1.0.201505071004\r\nTi SDK : 4.1.0.v20150610043614\r\nTi CLI : 4.0.1\r\nAlloy : 1.6.0\r\nMAC Yosemite : 10.10.3\r\nAppc npm : 4.0.0\r\nAppc CLI : 4.0.2-rc2\r\nNode: v0.10.37\r\nNexus 5 - Android 5.1.1\r\nMap Module: 2.3.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-10T18:21:28.000+0000", "updated": "2015-06-10T18:21:28.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }