{ "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\n

Reproduction 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\n

Expected result: Swipe on the map, and the map loads the new\r\nregions into view.
\r\nEnd result: Map does not update once instanciated.

\r\n

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\n

I 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\n

Andrew

\r\n

(Attached is an imaged once the mapview is scrolled and zoomed\r\nout; no update taking place).

{html}", "attachment": [ { "id": "18102", "filename": "device.png", "author": { "name": "andrewheebner", "key": "andrewheebner", "displayName": "Andrew Heebner", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:32.000+0000", "size": 109113, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: MapView not updating regions", "creator": { "name": "andrewheebner", "key": "andrewheebner", "displayName": "Andrew Heebner", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andrewheebner", "key": "andrewheebner", "displayName": "Andrew Heebner", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127504", "author": { "name": "andrewheebner", "key": "andrewheebner", "displayName": "Andrew Heebner", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

{html}", "updateAuthor": { "name": "andrewheebner", "key": "andrewheebner", "displayName": "Andrew Heebner", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:33.000+0000", "updated": "2011-04-15T03:10:33.000+0000" }, { "id": "127505", "author": { "name": "mikantchap", "key": "mikantchap", "displayName": "mikantchap", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I think mapview is only updating on a 'lightweight' window.

\n

If you're forced to use a lightweight window then the back\nbutton closes it + the parent window too. This is bad news for\nnavigation!

{html}", "updateAuthor": { "name": "mikantchap", "key": "mikantchap", "displayName": "mikantchap", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:34.000+0000", "updated": "2011-04-15T03:10:34.000+0000" }, { "id": "160694", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Several other customers are experiencing similar issues. \r\n\r\nHD Ticket: http://appc.me/c/APP-712838\r\nCommunity Ticket: http://developer.appcelerator.com/question/97611/android-mapview-doesnt-update-when-panning-map", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-26T18:45:03.000+0000", "updated": "2011-07-26T18:45:03.000+0000" }, { "id": "163658", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Known workarounds exist, moving to 1.9.0", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-22T13:34:11.000+0000", "updated": "2011-08-22T13:34:11.000+0000" }, { "id": "167574", "author": { "name": "nickmilner", "key": "nickmilner", "displayName": "Nick Milner", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Would you care to share this workaround with us ?\r\n\r\nThanks", "updateAuthor": { "name": "nickmilner", "key": "nickmilner", "displayName": "Nick Milner", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-03T05:44:15.000+0000", "updated": "2011-10-03T05:44:15.000+0000" }, { "id": "179247", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.9.0.v20120112153134\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.8.201201122152\r\nDevice: Droid 3 (2.3.4)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-13T14:29:25.000+0000", "updated": "2012-01-13T14:29:25.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }