Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2104] Android: MapView not updating regions

GitHub Issuen/a
Resolution Date2012-01-23T16:44:07.000+0000
Affected Version/sRelease 1.5.0, Release 1.7.5, Release 1.8.0
Fix Version/sSprint 2012-01, Release 2.0.0, Release 1.8.1
ReporterAndrew Heebner
AssigneeOpie Cyrus


The mapview (as of 1.4.2 - 1.5.0) no longer updates it's region setting based on the movement of the map.

Reproduction code:

var win = Titanium.UI.createWindow({  
    title: 'WeedMaps',
    navBarHidden: true

var mapview = Titanium.Map.createView({
    mapType: Titanium.Map.STANDARD_TYPE,
    region: {latitude:33.74511, longitude:-84.38993, latitudeDelta:0.01, longitudeDelta:0.01},
    animate: true,
    regionFit: true,
    userLocation: false


Expected result: Swipe on the map, and the map loads the new regions into view.
End result: Map does not update once instanciated.

I was able to work around this, but only with the help of getCurrentLocation(), utilizing GPS/Network location. This then allowed me to scroll the map and it updates wonderfully, but this is not useful since the map that is to be displayed has nothing to do with location awareness.

I do not know if this was the intended use for the MapView, or if something needs to be calibrated via regionChanged event on the user's end...


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




  1. Andrew Heebner 2011-04-15

    I found the cause of the issue. I had navBarHidden set to "true" for the main window. Doing so caused the map to malfunction, and another issue had arisen. Setting the main window to navBarHidden: false also makes the splash screen hang in the background behind the main window.

  2. mikantchap 2011-04-15

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

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

  3. Alan Leard 2011-07-26

    Several other customers are experiencing similar issues. HD Ticket: http://appc.me/c/APP-712838 Community Ticket: http://developer.appcelerator.com/question/97611/android-mapview-doesnt-update-when-panning-map
  4. Marshall Culpepper 2011-08-22

    Known workarounds exist, moving to 1.9.0
  5. Nick Milner 2011-10-03

    Would you care to share this workaround with us ? Thanks
  6. Wilson Luu 2012-01-13

    Closing bug. Verified fix on: SDK build: 1.9.0.v20120112153134 Runtime: V8, Rhino Titanium Studio, build: Device: Droid 3 (2.3.4)

JSON Source