Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1174] iPhone: Map view don't seem to zoom to coordinates

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:25.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsios, iphone, mapview
ReporterJeff Haynie
AssigneeStephen Tramer
Created2011-04-15T02:45:47.000+0000
Updated2012-09-28T19:01:16.000+0000

Description

On 4.0, Map View doesn't seem to correctly zoom to the correct zoom level and coordinates like previous releases.

Comments

  1. wallneradam 2011-04-15

    I have this problem as well.
    Here is a code to test:

       var w = Ti.UI.createWindow({});


    var mapview = Ti.Map.createView({

       mapType: Ti.Map.STANDARD_TYPE,
       region: {latitude: 48, longitude: 8, latitudeDelta: 40.08717290092796, longitudeDelta: 56.25},
       animate: true,
       regionFit: true,
       userLocation: false
       
       
       
       
    });
    w.add(mapview);
    w.open(); setTimeout(function() {
       mapview.zoom(1);
       setTimeout(function() {
           mapview.zoom(2);
       }, 2000);
       
       
       
       
    }, 2000)

    If I change latitudeDelta and longitudeDelta lesser than 7 it will work, otherwise not.

  2. Jeff Haynie 2011-04-15

    (from [5e48be0bd021b3b75b99b1fff3a82a245a524529]) Closes #1174 : Typo in TiMapView during setting the region was causing us to ignore the region on startup. http://github.com/appcelerator/titanium_mobile/commit/5e48be0bd021b3b75b99b1fff3a82a245a524529"> http://github.com/appcelerator/titanium_mobile/commit/5e48be0bd021b...

  3. Bill Dawson 2011-04-15

    (from [6c2b0d450f4a879a2d48a2376564870d4ad06e8b]) [#1174 state:fixed-in-qa] If window proxy switched to a context of its creation (using TiProxy.switchContext), now it switches back to its original context when that created context is slated to be cleaned up. (i.e., when the window is closed) http://github.com/appcelerator/titanium_mobile/commit/6c2b0d450f4a879a2d48a2376564870d4ad06e8b"> http://github.com/appcelerator/titanium_mobile/commit/6c2b0d450f4a8...

  4. Bill Dawson 2011-04-15

    Ignore that commit. I got the ticket number wrong by one digit. :\

JSON Source