[TIMOB-8301] Android: Unable to create mapview
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-04-09T19:57:33.000+0000 |
Affected Version/s | Release 1.8.2 |
Fix Version/s | n/a |
Components | Android |
Labels | api |
Reporter | Devang Gandhi |
Assignee | Marshall Culpepper |
Created | 2012-03-25T17:29:45.000+0000 |
Updated | 2012-04-09T19:57:33.000+0000 |
Description
The user is having a tabbedview application. And he is trying to access mapview, by calling the Ti.map.createview.
I dont have the complete code sample, but the mapview snippet, and the crash log.
Here is the code
to setup tabs:
app.tabs.stores = Ti.UI.createTab({
title:'Stores',
icon:'/images/nav_icons/stores.png',
tabIndex:nextTabIndex++
});
app.tabs.stores.window = gs.presenter.createStoreLocator(app.tabs.stores,{hideTabs:false}).window;
tabGroup.addTab(app.tabs.stores);
later, in the presenter: MapView = Ti.Map.createView({ regionFit:true, userLocation:false, visible:false });
mapView = MapView;
mapView.left = 321;
mapView.top = 45; // 44 (search)
mapView.height = viewHeight;
mapView.width = gs.ui.screenWidth;
mapView.addEventListener('regionChanged', regionChanged);
mapView.addEventListener('click', annotationClick);
window.add(mapView);
i have attached the crash log.
Attachments
File | Date | Size |
---|---|---|
log.txt | 2012-03-25T17:29:45.000+0000 | 9434 |
unable to reproduce.