3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js">
\r
9 Ext.onReady(function(){
\r
12 var button = Ext.get('show-btn');
\r
14 button.on('click', function(){
\r
15 // create the window on the first click and reuse on subsequent clicks
\r
18 mapwin = new Ext.Window({
\r
20 title: 'GMap Window',
\r
21 closeAction: 'hide',
\r
31 mapConfOpts: ['enableScrollWheelZoom','enableDoubleClickZoom','enableDragging'],
\r
32 mapControls: ['GSmallMapControl','GMapTypeControl','NonExistantControl'],
\r
34 geoCodeAddr: '4 Yawkey Way, Boston, MA, 02215-3409, USA',
\r
35 marker: {title: 'Fenway Park'}
\r
40 marker: {title: 'Boston Museum of Fine Arts'},
\r
43 Ext.Msg.alert('Its fine', 'and its art.');
\r
49 marker: {title: 'Northeastern University'}
\r