Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8301] Android: Unable to create mapview

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-04-09T19:57:33.000+0000
Affected Version/sRelease 1.8.2
Fix Version/sn/a
ComponentsAndroid
Labelsapi
ReporterDevang Gandhi
AssigneeMarshall Culpepper
Created2012-03-25T17:29:45.000+0000
Updated2012-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

FileDateSize
log.txt2012-03-25T17:29:45.000+00009434

Comments

  1. Devang Gandhi 2012-04-09

    unable to reproduce.

JSON Source