2014-03-19 27 views
0

我想我必須做一個更新,因爲我的應用程序停止工作。鈦:Ti.Map未定義?

線很簡單:

var marker = Ti.Map.createAnnotation({ 
    latitude: json.objects[0].tour[e.index].locations[i].latitude, 
    longitude: json.objects[0].tour[e.index].locations[i].longitude, 
    title: json.objects[0].tour[e.index].locations[i].name, 
    subtitle: json.objects[0].tour[e.index].locations[i].excerpt, 
    animate: true, 
    pincolor: Ti.Map.ANNOTATION_GREEN, 
    leftButton: '../images/pointer.png', 
    image: '../images/pointer.png' 
}); 

但是,當我嘗試編譯,我得到:

'未定義' 不是(評估 'Ti.Map.createAnnotation')

對象

我添加了Ti.Map作爲手錶表達,它說它是未定義的?

我做錯了什麼?

回答