0

我不知道如何为 Sencha 2 地图提供坐标,尝试了类似的方法(在 Internet 上的某个地方,我看到有人使用该属性,但它没有在地图 API 的配置列表中定义)。我找不到任何有意义的配置属性或方法,我忽略了什么?

http://docs.sencha.com/touch/2-0/#!/api/Ext.Map

this.getLoginview().push({
    xtype: 'map',
    position: new google.maps.LatLng(-34.397, 150.644)
    //useCurrentLocation: true
});
4

1 回答 1

0

我想到了:

var position = new google.maps.LatLng(60.358115,5.169067);
var map = new Ext.Map({
      mapOptions: {
          center: position
      },

      }
});

loginView.push(map);
于 2012-08-06T17:05:08.940 回答