{ "id": "62736", "key": "TIMOB-2104", "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": "12093", "description": "", "name": "Sprint 2012-01", "archived": true, "released": true, "releaseDate": "2012-01-15" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-23T16:44:07.000+0000", "created": "2011-04-15T03:10:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" }, { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-03-04T22:20:39.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": "{html}
The mapview (as of 1.4.2 - 1.5.0) no longer updates it's region\r\nsetting based on the movement of the map.
\r\nReproduction code:
\r\n\r\nvar win = Titanium.UI.createWindow({ \r\n title: 'WeedMaps',\r\n backgroundColor:'#fff',\r\n navBarHidden: true\r\n});\r\n\r\nvar mapview = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region: {latitude:33.74511, longitude:-84.38993, latitudeDelta:0.01, longitudeDelta:0.01},\r\n animate: true,\r\n regionFit: true,\r\n userLocation: false\r\n});\r\n\r\nwin.add(mapview);\r\nwin.open();
\r\n
\r\nExpected result: Swipe on the map, and the map loads the new\r\nregions into view.
\r\nEnd result: Map does not update once instanciated.
I was able to work around this, but only with the help of\r\ngetCurrentLocation(), utilizing GPS/Network location. This then\r\nallowed me to scroll the map and it updates wonderfully, but this\r\nis not useful since the map that is to be displayed has nothing to\r\ndo with location awareness.
\r\nI do not know if this was the intended use for the MapView, or\r\nif something needs to be calibrated via regionChanged event on the\r\nuser's end...
\r\nAndrew
\r\n(Attached is an imaged once the mapview is scrolled and zoomed\r\nout; no update taking place).
I found the cause of the issue. I had navBarHidden set to \"true\"\nfor the main window. Doing so caused the map to malfunction, and\nanother issue had arisen. Setting the main window to navBarHidden:\nfalse also makes the splash screen hang in the background behind\nthe main window.
I think mapview is only updating on a 'lightweight' window.
\nIf you're forced to use a lightweight window then the back\nbutton closes it + the parent window too. This is bad news for\nnavigation!