0
我试图在sencha框架中编写的应用程序上实现地理定位,但我真的不知道如何使用Sencha Touch 2和Google Maps Api实现地理定位。 我有以下代码:使用谷歌地图的Sencha Touch 2地理位置
Ext.define('App.view.WhereAmI', {
extend: 'Ext.Container',
xtype: 'whereAmI',
//? fullscreen: true,
requires: [
'Ext.Map'
],
config: {
layout: 'fit',
scrollable: true,
styleHtmlContent: true,
style: 'text-align: center; background-color:white;',
items:
[
{
xtype: 'toolbar',
docked: 'top',
title: 'Where Am I?',
minHeight: '60px',
items: [
{
ui: 'back',
xtype: 'button',
id: 'backButton',
text: 'Powrót',
},
{
minHeight: '60px',
right: '5px',
html: ['<img src="resources/images/Image.png"/ style="height: 100%; ">',].join(""),
},
],
},
{
xtype:'map',
},
]
},
//launch : function() { },
});
什么我究竟需要添加到这个视图来实现标志与我的当前位置?
感谢您的帮助!
http://stackoverflow.com/questions/8203933/sencha-touch-2 -display-current-location-on-map 希望这会有所帮助。 – 2012-07-23 06:27:27
我在写这篇文章之后发现了这个帖子,但是感谢您的回答。 :) – kmb 2012-07-24 10:31:38