3 * Copyright(c) 2006-2009 Ext JS, LLC
5 * http://www.extjs.com/license
8 Ext.onReady(function(){
\r
11 var button = Ext.get('show-btn');
\r
13 button.on('click', function(){
\r
14 // create the window on the first click and reuse on subsequent clicks
\r
17 mapwin = new Ext.Window({
\r
19 title: 'GMap Window',
\r
20 closeAction: 'hide',
\r
30 mapConfOpts: ['enableScrollWheelZoom','enableDoubleClickZoom','enableDragging'],
\r
31 mapControls: ['GSmallMapControl','GMapTypeControl','NonExistantControl'],
\r
33 geoCodeAddr: '4 Yawkey Way, Boston, MA, 02215-3409, USA',
\r
34 marker: {title: 'Fenway Park'}
\r
39 marker: {title: 'Boston Museum of Fine Arts'},
\r
42 Ext.Msg.alert('Its fine', 'and its art.');
\r
48 marker: {title: 'Northeastern University'}
\r