2 * Ext JS Library 2.2.1
\r
3 * Copyright(c) 2006-2009, Ext JS, LLC.
\r
4 * licensing@extjs.com
\r
6 * http://extjs.com/license
\r
10 Ext.onReady(function(){
\r
13 var button = Ext.get('show-btn');
\r
15 button.on('click', function(){
\r
16 // create the window on the first click and reuse on subsequent clicks
\r
19 mapwin = new Ext.Window({
\r
21 title: 'GMap Window',
\r
22 closeAction: 'hide',
\r
32 mapConfOpts: ['enableScrollWheelZoom','enableDoubleClickZoom','enableDragging'],
\r
33 mapControls: ['GSmallMapControl','GMapTypeControl','NonExistantControl'],
\r
35 geoCodeAddr: '4 Yawkey Way, Boston, MA, 02215-3409, USA',
\r
36 marker: {title: 'Fenway Park'}
\r
41 marker: {title: 'Boston Museum of Fine Arts'},
\r
44 Ext.Msg.alert('Its fine', 'and its art.');
\r
50 marker: {title: 'Northeastern University'}
\r