]>
git.proxmox.com Git - sencha-touch.git/blob - src/examples/oreilly/app/view/tab/Location.js
1 Ext
.define('Oreilly.view.tab.Location', {
3 extend
: 'Ext.Container',
22 initialize: function() {
24 var position
= new google
.maps
.LatLng(Oreilly
.app
.mapCenter
[0], Oreilly
.app
.mapCenter
[1]),
25 infoWindow
= new google
.maps
.InfoWindow({ content
: Oreilly
.app
.mapText
}),
34 mapTypeId
: google
.maps
.MapTypeId
.ROADMAP
38 marker
= new google
.maps
.Marker({
44 google
.maps
.event
.addListener(marker
, 'click', function() {
45 infoWindow
.open(map
, marker
);
48 setTimeout(function() {
49 map
.getMap().panTo(position
);