[Commits] r1449 - sandbox/cmoullet/ux/GeonamesSearchCombo/examples

commits at geoext.org commits at geoext.org
Sat Nov 7 03:59:47 CET 2009


Author: cmoullet
Date: 2009-11-07 03:59:47 +0100 (Sat, 07 Nov 2009)
New Revision: 1449

Modified:
   sandbox/cmoullet/ux/GeonamesSearchCombo/examples/GeonamesSearchComboExample.html
   sandbox/cmoullet/ux/GeonamesSearchCombo/examples/GeonamesSearchComboExample.js
Log:
Add an example with a div


Modified: sandbox/cmoullet/ux/GeonamesSearchCombo/examples/GeonamesSearchComboExample.html
===================================================================
--- sandbox/cmoullet/ux/GeonamesSearchCombo/examples/GeonamesSearchComboExample.html	2009-11-07 02:39:56 UTC (rev 1448)
+++ sandbox/cmoullet/ux/GeonamesSearchCombo/examples/GeonamesSearchComboExample.html	2009-11-07 02:59:47 UTC (rev 1449)
@@ -16,5 +16,7 @@
         <p>This example demonstrates the geonames search.<p>
         <p>The js is not minified so it is readable. See <a href="GeonamesSearchComboExample.js">GeonamesSearchComboExample.js</a>.</p>
         <div id="mappanel"></div>
+        <h2>Geonames search in a div</h2>
+        <div id="geonamesSearch"></div>
     </body>
 </html>
\ No newline at end of file

Modified: sandbox/cmoullet/ux/GeonamesSearchCombo/examples/GeonamesSearchComboExample.js
===================================================================
--- sandbox/cmoullet/ux/GeonamesSearchCombo/examples/GeonamesSearchComboExample.js	2009-11-07 02:39:56 UTC (rev 1448)
+++ sandbox/cmoullet/ux/GeonamesSearchCombo/examples/GeonamesSearchComboExample.js	2009-11-07 02:59:47 UTC (rev 1449)
@@ -24,6 +24,12 @@
        zoom: 12}
     );
 
+    var GeoNameSearchComboExternal = new GeoExt.ux.GeonamesSearchCombo(
+       {map: map,
+       zoom: 8,
+       renderTo: 'geonamesSearch'}
+    );
+
     mapPanel = new GeoExt.MapPanel({
         title: "GeoExt MapPanel with Geonames search",
         renderTo: "mappanel",



More information about the Commits mailing list