开发者

How do I create a mapview with titanium appcelerator mobile?

I just start to work with appcelerator and I haven't found a good layout tutorial yet. At the moment I try to show a mapview with a specific location. Has anybody an example or a good pointer on how to 开发者_Python百科do this?


Download the KitchenSink which is mentioned on the Getting Started page. It has several hundred examples on how to use the various Titanium based APIs - including MapViews.

Here's a simple example

    var mapview = Titanium.Map.createView({
    mapType: Titanium.Map.STANDARD_TYPE,
    region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},
    animate:true,
    regionFit:true,
    userLocation:true
});
win.add(mapview);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜