From xap-commits-return-386-apmail-incubator-xap-commits-archive=incubator.apache.org@incubator.apache.org Mon Aug 28 01:56:20 2006 Return-Path: Delivered-To: apmail-incubator-xap-commits-archive@locus.apache.org Received: (qmail 11975 invoked from network); 28 Aug 2006 01:56:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Aug 2006 01:56:06 -0000 Received: (qmail 58374 invoked by uid 500); 28 Aug 2006 01:56:06 -0000 Delivered-To: apmail-incubator-xap-commits-archive@incubator.apache.org Received: (qmail 58350 invoked by uid 500); 28 Aug 2006 01:56:06 -0000 Mailing-List: contact xap-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xap-dev@incubator.apache.org Delivered-To: mailing list xap-commits@incubator.apache.org Received: (qmail 58341 invoked by uid 99); 28 Aug 2006 01:56:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Aug 2006 18:56:06 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Aug 2006 18:55:58 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 1B5021A9829; Sun, 27 Aug 2006 18:55:13 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r437502 [7/11] - /incubator/xap/site/ Date: Mon, 28 Aug 2006 01:55:07 -0000 To: xap-commits@incubator.apache.org From: mturyn@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060828015513.1B5021A9829@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Added: incubator/xap/site/index.php@cid=1075&lang=xml&source_code=..%2Fdemo%2FxapDemos%2Fexamples%2Fgoogle%2Findex.xal.html URL: http://svn.apache.org/viewvc/incubator/xap/site/index.php%40cid%3D1075%26lang%3Dxml%26source_code%3D..%252Fdemo%252FxapDemos%252Fexamples%252Fgoogle%252Findex.xal.html?rev=437502&view=auto ============================================================================== --- incubator/xap/site/index.php@cid=1075&lang=xml&source_code=..%2Fdemo%2FxapDemos%2Fexamples%2Fgoogle%2Findex.xal.html (added) +++ incubator/xap/site/index.php@cid=1075&lang=xml&source_code=..%2Fdemo%2FxapDemos%2Fexamples%2Fgoogle%2Findex.xal.html Sun Aug 27 18:55:05 2006 @@ -0,0 +1,616 @@ + + + +XAP: Demos + + + + + + + + +
+ + + +
+ + +
+ + + + + + + + +
  Welcome  |  Getting Started 
+

Close source view

  1. <xal xmlns="http://www.openxal.org/xal" xmlns:mco="http://www.openxal.org/mco"
  2. +
  3.     xmlns:macro="http://www.openxal.org/macro" xmlns:xm="http://www.openxal.org/xmodify">
  4. +
  5.     <mco:mco id="myMco" src="EventMco"/>
  6. +
  7.  
  8. +
  9.     <!--
  10. +
  11.         This macro will execute a remove modification statement.  By doing so it will
  12. +
  13.         remove all the markers from the gMap.  The Macro could be enhanced be selecting
  14. +
  15.         only the certian set of macro or adding more modification statements.
  16. +
  17.     -->
  18. +
  19.     <macro:macro id="removeMarkers">
  20. +
  21.         <xm:modifications>
  22. +
  23.             <xm:remove-element select="/xal/splitPane/top/splitPane/right/gMap/markers/marker"/>
  24. +
  25.         </xm:modifications>
  26. +
  27.     </macro:macro>
  28. +
  29.     <!--
  30. +
  31.         Using percentages in a splitter will not work well in IE, it is better to use a
  32. +
  33.         pixel value for splitPosition.
  34. +
  35.     -->
  36. +
  37.     <splitPane orientation="vertical" splitPosition="430px" width="100%" height="100%">
  38. +
  39.         <top>
  40. +
  41.             <splitPane splitPosition="230" width="100%" height="100%">
  42. +
  43.                 <left>
  44. +
  45.                     <tree width="100%" height="100%" onSelect="mco:myMco.onTreeSelect(event)">
  46. +
  47.                         <treeItem text="EMS System - Boston">
  48. +
  49.                             <treeItem text="Fire">
  50. +
  51.                                 <treeItem text="District 1">
  52. +
  53.                                     <treeItem text="Station 5" latitude="42.37889"
  54. +
  55.                                         longitude="-71.030794" icon="fireIcon">
  56. +
  57.                                         <treeItem text="Engine 5 (2003 Pierce Enforcer 1250)"
  58. +
  59.                                             latitude="42.366661" longitude="-71.0164403"
  60. +
  61.                                             icon="fireIcon"/>
  62. +
  63.                                     </treeItem>
  64. +
  65.                                     <treeItem text="Station 56" latitude="42.387958"
  66. +
  67.                                         longitude="-71.003957" icon="fireIcon">
  68. +
  69.                                         <treeItem text="Engine 56 (1996 E-One Cyclone II)"
  70. +
  71.                                             latitude="42.39652340" longitude="-70.9944677"
  72. +
  73.                                             icon="fireIcon"/>
  74. +
  75.                                     </treeItem>
  76. +
  77.                                 </treeItem>
  78. +
  79.                                 <treeItem text="District 4">
  80. +
  81.                                     <treeItem text="Station 5" latitude="42.37889"
  82. +
  83.                                         longitude="-71.030794" icon="fireIcon">
  84. +
  85.                                         <treeItem text="Engine 7 (1999 E-One Cyclone II)"
  86. +
  87.                                             latitude="42.38264041147532"
  88. +
  89.                                             longitude="-71.0390567779541" icon="fireIcon"/>
  90. +
  91.                                         <treeItem
  92. +
  93.                                             text="Ladder 17 (2005 Pierce 95' Mid-Mounted Tower)"
  94. +
  95.                                             latitude="42.36669337162246"
  96. +
  97.                                             longitude="-71.00781440734863" icon="fireIcon"/>
  98. +
  99.                                     </treeItem>
  100. +
  101.                                 </treeItem>
  102. +
  103.                                 <treeItem text="District 6">
  104. +
  105.                                     <treeItem text="Station 39" latitude="42.33943"
  106. +
  107.                                         longitude="-71.050364" icon="fireIcon">
  108. +
  109.                                         <treeItem text="Engine 39 (1993 E-One Protector)"
  110. +
  111.                                             latitude="42.34579440248777"
  112. +
  113.                                             longitude="-71.04463577270508" icon="fireIcon"/>
  114. +
  115.                                         <treeItem text="Ladder 18 (2004 Pierce Dash)"
  116. +
  117.                                             latitude="42.33535817353786"
  118. +
  119.                                             longitude="-71.02360725402832" icon="fireIcon"/>
  120. +
  121.                                         <treeItem text="Comms Unit (1997 Chevy)"
  122. +
  123.                                             latitude="42.320255882747"
  124. +
  125.                                             longitude="-71.04918479919434" icon="fireIcon"/>
  126. +
  127.                                         <treeItem text="H5 Decon (1993 GMC/E-One Decon Unit)"
  128. +
  129.                                             latitude="42.31298899314738"
  130. +
  131.                                             longitude="-71.07497692108154" icon="fireIcon"/>
  132. +
  133.                                     </treeItem>
  134. +
  135.                                 </treeItem>
  136. +
  137.                             </treeItem>
  138. +
  139.                             <treeItem text="Hospitals">
  140. +
  141.                                 <treeItem text="Massachusetts Eye &amp; Ear Infirmary"
  142. +
  143.                                     latitude="42.362076" longitude="-71.070613" icon="hospitalIcon" infoText="&lt;div class=&quot;infoText&quot;&gt;&lt;a href=&quot;http://www.meei.harvard.edu/&quot; target=&quot;new&quot;&gt;Massachusetts Eye &amp; Ear Infirmary&lt;/a&gt;&lt;br&gt;&lt;br&gt;243 Charles Stree t&lt;br&gt;Boston&lt;br&gt;(617) 523-7900&lt;p&gt;Third oldest hospital in the United States and the largest in New England. It consistently ranks as one of the country's best hospitals by U.S. News and World Report.&lt;/p&gt;&lt;br&gt;&lt;/div&gt;"/>
  144. +
  145.                                    
  146. +
  147.                                 <treeItem text="Massachusetts General Hospital" latitude="42.362263"
  148. +
  149.                                     longitude="-71.069084" icon="hospitalIcon" infoText="&lt;div class=&quot;infoText&quot;&gt;&lt;a href=&quot;http://www.mgh.harvard.edu/&quot; target=&quot;new&quot;&gt;Massachusetts General Hospital&lt;/a&gt;&lt;br&gt;&lt;br&gt;32 Fruit Street&lt;br&gt;Boston&lt;br&gt;617-523-7900&lt;br&gt;&lt;/div&gt;"/>
  150. +
  151.                                 <treeItem text="Beth Israel Deaconess Medical Center"
  152. +
  153.                                     latitude="42.340568" longitude="-71.105257" icon="hospitalIcon" infoText="&lt;div class=&quot;infoText&quot;&gt;&lt;a href=&quot;http://www.bidmc.harvard.edu/sites/bidmc/home.asp&quot; target=&quot;new&quot;&gt;Beth Israel Deaconess Medical Center&lt;/a&gt;&lt;br&gt;&lt;br&gt;3 30 Brookline Avenue&lt;br&gt;Boston&lt;br&gt;(617) 667-7000&lt;p&gt;A Harvard University teaching and research hospital witha strong reputation for technical excellence in medicine.&lt;/p&gt;&lt;br&gt;&lt;/div&gt;"/>
  154. +
  155.                                 <treeItem text="Brigham and Women's Hospital" latitude="42.336196"
  156. +
  157.                                     longitude="-71.10776" icon="hospitalIcon" infoText="&lt;div class=&quot;infoText&quot;&gt;&lt;a href=&quot;http://www.brighamandwomens.org/&quot; target=&quot;new&quot;&gt;Brigham and Women's Hospital&lt;/a&gt;&lt;br&gt;&lt;br&gt;75 Francis Street&lt;br&gt;Boston&lt;br&gt;(617) 732-5500&lt;p&gt;A teaching hospital of Harvard Medical Sch ool, named to US News and World Report's Honor Roll of top hospitals.&lt;/p&gt;&lt;br&gt;&lt;/div&gt;"/>
  158. +
  159.                                 <treeItem text="Caritas Carney Hospital" latitude="42.2787"
  160. +
  161.                                     longitude="-71.066114" icon="hospitalIcon" infoText="&lt;div class=&quot;infoText&quot;&gt;&lt;a href=&quot;http://www.carneyhospital.org/home/default.asp&quot; target=&quot;new&quot;&gt;Caritas Carney Hospital&lt;/a&gt;&lt;br&gt;&lt;br&gt;2100 Dorchester Avenue&lt;br&gt;Boston&lt;br&gt;&lt;/div&gt;"/>
  162. +
  163.                                 <treeItem text="Children's Hospital" latitude="42.337779"
  164. +
  165.                                     longitude="-71.105486" icon="hospitalIcon" infoText="&lt;div class=&quot;infoText&quot;&gt;&lt;a href=&quot;http://www.childrenshospital.org/&quot; target=&quot;new&quot;&gt;Children's Hospital&lt;/a&gt;&lt;br&gt;&lt;br&gt;300 Longwood Avenue&lt;br&gt;Boston&lt;br&gt;&lt;/div&gt;"/>
  166. +
  167.                             </treeItem>
  168. +
  169.                             <treeItem text="Police">
  170. +
  171.                                 <treeItem text="District C-11" latitude="42.297771"
  172. +
  173.                                     longitude="-71.059457" icon="policyIcon"/>
  174. +
  175.                                 <treeItem text="District C-6" latitude="42.341301"
  176. +
  177.                                     longitude="-71.054997" icon="policyIcon"/>
  178. +
  179.                                 <treeItem text="District A-1" latitude="42.361704"
  180. +
  181.                                     longitude="-71.060281" icon="policyIcon"/>
  182. +
  183.                                 <treeItem text="District A-7" latitude="42.371119"
  184. +
  185.                                     longitude="-71.038749" icon="policyIcon"/>
  186. +
  187.                                 <treeItem text="District D-4" latitude="42.339292"
  188. +
  189.                                     longitude="-71.069435" icon="policyIcon"/>
  190. +
  191.                                 <treeItem text="District B-2" latitude="42.328605"
  192. +
  193.                                     longitude="-71.084094" icon="policyIcon"/>
  194. +
  195.                                 <treeItem text="District E-13" latitude="42.309687"
  196. +
  197.                                     longitude="-71.104541" icon="policyIcon"/>
  198. +
  199.                                 <treeItem text="District B-3" latitude="42.284812"
  200. +
  201.                                     longitude="-71.091567" icon="policyIcon"/>
  202. +
  203.                                 <treeItem text="District E-5" latitude="42.286963"
  204. +
  205.                                     longitude="-71.148511" icon="policyIcon"/>
  206. +
  207.                                 <treeItem text="District E-18" latitude="42.256474"
  208. +
  209.                                     longitude="-71.124132" icon="policyIcon"/>
  210. +
  211.                             </treeItem>
  212. +
  213.                         </treeItem>
  214. +
  215.                     </tree>
  216. +
  217.                 </left>
  218. +
  219.                 <right>
  220. +
  221.                     <!--
  222. +
  223.                         Google maps tag uses the XAP extension points to allow developers to plugin
  224. +
  225.                         any 3rd party or home grown AJAX widgets and use them interchangeably.
  226. +
  227.                     -->
  228. +
  229.                     <gMap xmlns="http://www.google.com" id="googleMap" center="42.37889, -71.030794" zoom="12" mapControl="large"
  230. +
  231.                         zoomControl="false" mapTypeControl="true" scaleControl="false"
  232. +
  233.                         mapType="G_NORMAL_MAP" onClick="mco:myMco.onMapClick(event)">
  234. +
  235.                         <infoWindow latitude="42.37889"
  236. +
  237.                             longitude="-71.030794"><![CDATA[This application demonstrates the plugin architecture; this allows developers to create XML syntax that can than be used within applications. In this application an XML tag called "gMap" is used to allow very simple integration with a third party component.]]></infoWindow>
  238. +
  239.                         <icons>
  240. +
  241.                             <icon image="images/icon_fire.png" size="12,20" shadowSize="22,20"
  242. +
  243.                                 iconAnchor="6,20" infoWindowAnchor="5,1" id="fireIcon"/>
  244. +
  245.                             <icon image="images/icon_police.png" size="12,20" shadowSize="22,20"
  246. +
  247.                                 iconAnchor="6,20" infoWindowAnchor="5,1" id="policyIcon"/>
  248. +
  249.                             <icon image="images/icon_hospital.png" size="12,20" shadowSize="22,20"
  250. +
  251.                                 iconAnchor="6,20" infoWindowAnchor="5,1" id="hospitalIcon"/>
  252. +
  253.                             <icon image="images/pflag.png" size="12,20" shadowSize="22,20"
  254. +
  255.                                 iconAnchor="6,20" infoWindowAnchor="5,1" id="aFlagIcon"/>
  256. +
  257.                             <icon image="images/dflag.png" size="12,20" shadowSize="22,20"
  258. +
  259.                                 iconAnchor="6,20" infoWindowAnchor="5,1" id="dFlagIcon"/>
  260. +
  261.                         </icons>
  262. +
  263.                         <markers id="googleMapMarkers">
  264. +
  265.                             <!--
  266. +
  267.                              Sample marker for the To add a marker by default uncomment the snippet of
  268. +
  269.                              XML  you can add any html you want to the marker and it will show up
  270. +
  271.                              in a popup bubble when the marker is clicked.
  272. +
  273.                              
  274. +
  275.                             <marker latitude="37.4419" longitude="-90.1419">
  276. +
  277.                                 <![CDATA[
  278. +
  279.                                      <ul><li>james</li>
  280. +
  281.                                     <li>Bob</li>
  282. +
  283.                                     <li>Rob</li>
  284. +
  285.                                     </ul>
  286. +
  287.                                 ]]>
  288. +
  289.                             </marker>
  290. +
  291.                            
  292. +
  293.                             -->
  294. +
  295.                         </markers>
  296. +
  297.                     </gMap>
  298. +
  299.                 </right>
  300. +
  301.             </splitPane>
  302. +
  303.         </top>
  304. +
  305.         <bottom>
  306. +
  307.             <textView><![CDATA[<div style="valign:top; background-color: #EEEEEE; width: 100%; height: 100%">
  308. +
  309.                     <table width="100%" height="100%" valign="top" cellPadding="" cellSpacing="10">
  310. +
  311.                         <tr valign="top"><td valign="top" width="420px" style="background-color:#BBBBBB">
  312. +
  313.                             <table width="400px" cellpadding="2" cellspacing="0" border="0">
  314. +
  315.                                 <tr><td colspan="2">
  316. +
  317.                                 <h1>Enter new emergency call:</h1><hr style="color:#ffffff; width:100%">
  318. +
  319.                                 </td></tr>
  320. +
  321.                                 <tr><td class="fieldName">Caller name:</td><td><input type="text" id="patient" style="width:100%"></td></tr>
  322. [... 422 lines stripped ...]