Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16779] BlackBerry: Map view regionFit not work, but iOS works

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2016-08-30T19:54:52.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterSteven Lam
AssigneePedro Enrique
Created2013-12-27T11:41:25.000+0000
Updated2017-03-20T20:23:37.000+0000

Description

Steps to Reproduce

Add a map view and set regionFit=true

Actual Result

Region does not fit and remains on the default zoom level

Expected Result

Region should be fit

Test case

var win = Ti.UI.createWindow({
	layout : 'vertical'
});

var MapModule = require('ti.map');

var mapData = {
	
	//BlackBerry test
	mapType:   Titanium.Map.STANDARD_TYPE,
	
	//iOS test
	//mapType:   MapModule.STANDARD_TYPE, 
	region : {
		latitude : 33.74511,
		longitude : -84.38993,
		latitudeDelta : 0.5,
		longitudeDelta : 0.5
	},
	animate : true,
	regionFit : true,
	userLocation : true
};

//BB test
var mapview = Titanium.Map.createView(mapData);
win.add(mapview); 

//iOS
//var MapModule = require('ti.map');
//var mapview = MapModule.createView(mapData);

win.add(mapview);
win.open();

Attachments

FileDateSize
TC-3479 BlackBerry Simulator Screen shot Mar 27, 2014 6.49.02 PM.jpg2014-03-28T00:56:08.000+0000194751
TC-3479 iOS Simulator Screen shot Mar 27, 2014 6.49.02 PM.png2014-03-28T00:56:08.000+0000632700

Comments

  1. Shak Hossain 2014-01-16

    Hi Steve, Can you please post your test code? It will help us to expedite the review process. We can then provide you a work-around or recommendation. Thanks,
  2. Chris Barber 2016-08-30

    BlackBerry is dead.
  3. Lee Morris 2017-03-20

    Closing ticket as BlackBerry is no longer supported.

JSON Source