Ticket #497: Add_gx_mappanel,_add_titles,_some_fixes.patch
| File Add_gx_mappanel,_add_titles,_some_fixes.patch, 30.0 kB (added by cmoullet, 3 years ago) |
|---|
-
MapFish/client/examples/print/basic.html
15 15 src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 16 16 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 17 17 18 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 19 18 20 <script type="text/javascript"> 19 21 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 20 22 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 66 68 new Ext.BoxComponent({ // raw 67 69 region: 'north', 68 70 el: 'north', 69 height: 32 71 height: 32, 72 margins: {left: 5,top: 5} 70 73 }), 71 74 { 72 75 region: 'west', … … 124 127 region: 'center', 125 128 title: 'Map', 126 129 layout: 'fit', 127 xtype: ' mapcomponent',130 xtype: 'gx_mappanel', 128 131 map: map, 129 132 tbar: toolbar 130 133 }] … … 136 139 </head> 137 140 <body> 138 141 <div id="west"></div> 139 <div id="north">140 <p style="font-size:1 4pt" align="center">MapFish printer</p>142 <div id="north"> 143 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: print</p> 141 144 </div> 142 145 <div id="center"></div> 143 146 </body> -
MapFish/client/examples/geostat/choropleths.html
10 10 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 11 11 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 12 12 13 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 14 13 15 <script type="text/javascript"> 14 16 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 15 17 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 76 78 </style> 77 79 </head> 78 80 <body> 79 <h1 class="page-title">Choropleths Example</h1> 80 81 <div id="north"> 82 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: chloropleths</p> 83 </div> 81 84 <div id="content"> 82 85 <div id="right"> 83 86 <div id="myChoroplethDiv"></div> -
MapFish/client/examples/tree/tree_automatic.html
66 66 </head> 67 67 68 68 <body> 69 <div id="north"> 70 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: automatically generated tree</p> 71 </div> 69 72 <div id="right"> 70 73 <div id="tree"></div> 71 74 </div> -
MapFish/client/examples/print/simple.html
17 17 src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 18 18 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 19 19 20 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 21 20 22 <script type="text/javascript"> 21 23 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 22 24 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 94 96 new Ext.BoxComponent({ // raw 95 97 region: 'north', 96 98 el: 'north', 97 height: 32 99 height: 32, 100 margins: {left: 5,top: 5} 98 101 }), 99 102 { 100 103 region: 'west', … … 195 198 region: 'center', 196 199 title: 'Map', 197 200 layout: 'fit', 198 xtype: ' mapcomponent',201 xtype: 'gx_mappanel', 199 202 map: map, 200 203 tbar: toolbar 201 204 }] … … 208 211 <body> 209 212 <div id="west"></div> 210 213 <div id="north"> 211 <p style="font-size:1 4pt" align="center">MapFish printer</p>214 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: advanced print</p> 212 215 </div> 213 216 <div id="center"></div> 214 217 <div id="help"> -
MapFishSample/mapfishsample/public/index.html
1 1 <!DOCTYPE html> 2 2 <html> 3 <head> 4 <title>MapFish Samples</title> 5 <link rel="stylesheet" href="base.css" type="text/css" /> 6 </head> 7 <body> 8 <div id="header"><a href=""><img id="header-logo" src="mapfish.png"/></a></div> 9 <h1 class="page-title">MapFish Samples</h1> 10 11 <div id="content"> 12 <h2>Demos</h2> 13 <a href="demos/">Demos page</a> 14 15 <h2>Examples</h2> 16 <ul> 17 <li><a href="examples/map/">Map</a></li> 18 <li><a href="examples/tree/">Tree</a></li> 19 <li><a href="examples/geostat/">GeoStat</a></li> 20 <li><a href="examples/shortcuts/">Shortcuts</a></li> 21 <li><a href="examples/editing/">Editing</a></li> 22 <li><a href="examples/search/">Search</a></li> 23 <li><a href="examples/print/">Print</a></li> 24 <li><a href="examples/earth/">Google Earth Plugin</a></li> 25 <li><a href="examples/recenter/">Recenter</a></li> 26 </ul> 27 28 <h2>Tests</h2> 29 <ul> 30 <li><a href="mfbase/mapfish/tests/tests-wrapper.html">MapFish tests</a></li> 31 <li><a href="tests/tests-wrapper.html">MapFishSample tests</a></li> 32 </ul> 33 </div> 34 </body> 3 <head> 4 <title>MapFish Tests</title> 5 <link rel="stylesheet" href="base.css" type="text/css"/> 6 </head> 7 <body> 8 <div id="header"><a href=""><img id="header-logo" src="mapfish.png"/></a></div> 9 <h1 class="page-title">MapFish Tests</h1> 10 <ul> 11 <li><a href="mfbase/mapfish/tests/tests-wrapper.html">MapFish tests</a></li> 12 <li><a href="tests/tests-wrapper.html">MapFishSample tests</a></li> 13 </ul> 14 </div> 15 </body> 35 16 </html> 36 17 -
MapFish/client/examples/tree/tree_standalone.html
87 87 </head> 88 88 89 89 <body> 90 <div id="north"> 91 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: standalone tree</p> 92 </div> 90 93 <div id="tree"></div> 91 94 92 95 <div> -
MapFish/client/examples/map/toolbar.html
11 11 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 12 12 <script type="text/javascript" src="../../mfbase/ext/ext-all.js"></script> 13 13 14 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 15 14 16 <script type="text/javascript"> 15 17 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 16 18 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 99 101 new Ext.BoxComponent({ 100 102 region: 'north', 101 103 el: 'north', 102 height: 60 104 height: 32, 105 margins: {left: 5,top: 5} 103 106 }), { 104 107 region: 'west', 105 108 title: 'LayerTree', … … 123 126 border: true, 124 127 margins: '5 5 0 0', 125 128 items: [{ 126 xtype: ' mapcomponent',129 xtype: 'gx_mappanel', 127 130 map: map, 128 131 tbar: toolbar, 129 132 border: false … … 312 315 toolbar.activate(); 313 316 314 317 // display some text in the status bar: 315 this.setStatus('Status: example app ready');318 this.setStatus('Status: information'); 316 319 } 317 320 }; 318 321 }(); // end of app … … 327 330 .clear-left { 328 331 clear: left; 329 332 } 330 #north {331 // uncomment this line to insert a banner :332 /*background:transparent url(images/banner.jpg) repeat-x scroll 0 0;*/333 }334 333 </style> 335 334 </head> 336 335 337 336 <body> 338 <div id="north">your banner here</div> 337 <div id="north"> 338 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: map with toolbar</p> 339 </div> 339 340 <div id="mymap"></div> 340 341 </body> 341 342 </html> -
MapFish/client/examples/map/multiple_maps.html
9 9 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 10 10 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 11 11 12 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 13 12 14 <script type="text/javascript"> 13 15 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 14 16 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 70 72 </script> 71 73 72 74 <style type="text/css"> 73 .map, .mapContainer,#firstMap, #secondMap {75 .map, #firstMap, #secondMap { 74 76 width: 300px; 75 77 height: 200px; 76 78 border: 1px solid #999; … … 82 84 .x-panel-body { 83 85 border: none !important; 84 86 } 87 #north { 88 margin-top:5px; 89 margin-left:5px; 90 } 85 91 </style> 86 92 </head> 87 93 88 94 <body> 95 <div id="north"> 96 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: multiple maps</p> 97 </div> 98 <br> 89 99 <div id="firstMap" class="map"></div> 90 100 <div id="firstTree" class="tree"></div> 91 101 -
MapFish/client/examples/map/layout_spherical_mercator.html
10 10 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 11 11 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 12 12 13 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 14 13 15 <script type="text/javascript"> 14 16 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 15 17 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 46 48 maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 47 49 20037508, 20037508.34) 48 50 }; 49 map = new OpenLayers.Map( 'center',options);51 map = new OpenLayers.Map(options); 50 52 51 53 // create Google Mercator layers 52 54 var gmap = new OpenLayers.Layer.Google( … … 81 83 map.addLayers([gmap, yahoo, yahoosat, yahoohyb, mapnik]); 82 84 83 85 map.setCenter(new OpenLayers.LonLat(17, 2), 2); 84 85 86 var mapcomponent = new mapfish.widgets.MapComponent({map: map}); 87 86 88 87 var viewport = new Ext.Viewport({ 89 88 layout:'border', 90 89 items:[ 91 90 new Ext.BoxComponent({ // raw 92 91 region: 'north', 93 92 el: 'north', 94 height: 32 93 height: 32, 94 margins: {left: 5,top: 5} 95 95 }),{ 96 96 region: 'south', 97 97 contentEl: 'south', … … 132 132 region: 'center', 133 133 title: 'Map', 134 134 layout: 'fit', 135 items: mapcomponent 135 xtype: 'gx_mappanel', 136 map: map 136 137 } 137 138 ] 138 139 }); … … 157 158 </head> 158 159 <body> 159 160 <div id="north"> 160 <p >MapFish</p>161 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: usage of maps in spherical mercator</p> 161 162 </div> 162 163 <div id="center"> 163 164 </div> 164 165 <div id="south"> 165 <p> south - generally for informational stuff, also could be for status bar</p>166 <p></p> 166 167 </div> 167 168 168 169 </body> -
MapFish/client/examples/map/layout.html
10 10 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 11 11 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 12 12 13 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 14 13 15 <script type="text/javascript"> 14 16 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 15 17 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 50 52 new Ext.BoxComponent({ // raw 51 53 region: 'north', 52 54 el: 'north', 53 height: 32 55 height: 32, 56 margins: {left: 5,top: 5} 54 57 }),{ 55 58 region: 'south', 56 59 contentEl: 'south', … … 103 106 region: 'center', 104 107 title: 'Map', 105 108 layout: 'fit', 106 xtype: ' mapcomponent',109 xtype: 'gx_mappanel', 107 110 map: map 108 111 } 109 112 ] … … 114 117 <body> 115 118 <div id="west"></div> 116 119 <div id="north"> 117 <p >MapFish</p>120 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: map in complex layout</p> 118 121 </div> 119 122 <div id="center"></div> 120 123 <div id="south"> 121 <p> south - generally for informational stuff, also could be for status bar</p>124 <p></p> 122 125 </div> 123 126 124 127 </body> -
MapFish/client/examples/map/window.html
9 9 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 10 10 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 11 11 12 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 13 12 14 <script type="text/javascript"> 13 15 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 14 16 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 34 36 35 37 Ext.onReady(function(){ 36 38 37 var map = new OpenLayers.Map( 'olmap');39 var map = new OpenLayers.Map(); 38 40 39 41 var wms = new OpenLayers.Layer.WMS("OpenLayers WMS", 40 42 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}, {buffer: 0}); … … 53 55 plain: true, 54 56 bodyStyle: 'padding:5px;', 55 57 items: [{ 56 xtype: ' mapcomponent',58 xtype: 'gx_mappanel', 57 59 map: map 58 60 }] 59 61 }); … … 100 102 body element must not start with text to prevent IE bug 101 103 http://extjs.com/forum/showthread.php?t=7912&highlight=createRange 102 104 --> 103 <h1>MapFish example</h1> 104 This example shows how to use the MapComponent class to integrate a OL map into a window layout. 105 <div id="olmap"> 105 <div id="north"> 106 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: simple map in complex layout</p> 106 107 </div> 108 </div> 107 109 108 110 </body> 109 111 </html> -
MapFish/client/examples/search/c2corg.html
9 9 10 10 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 11 11 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 12 12 13 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 13 14 14 15 <script type="text/javascript"> 15 16 // Because of a bug in Firefox 2 we need to specify the MapFish base path. … … 163 164 </head> 164 165 165 166 <body> 166 <h1 class="page-title">Search Example</h1> 167 168 <div id="north"> 169 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: search</p> 170 </div> 167 171 <div id="content"> 168 172 <div id="map" class="float-left"></div> 169 173 <div class="float-left"> -
MapFish/client/examples/tree/tree_radio.html
140 140 </head> 141 141 142 142 <body> 143 <div id="north"> 144 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: tree with radio button</p> 145 </div> 143 146 <div id="right"> 144 147 <div id="tree"></div> 145 148 </div> -
MapFish/client/examples/tree/tree_user_model.html
98 98 </head> 99 99 100 100 <body> 101 <div id="north"> 102 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: custom tree</p> 103 </div> 101 104 <div id="right"> 102 105 <div id="tree"></div> 103 106 </div> -
MapFish/client/examples/tree/tree_user_model_complex.html
170 170 </head> 171 171 172 172 <body> 173 <div id="north"> 174 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: complex custom tree</p> 175 </div> 173 176 <div class="description"> 174 177 The tree below demonstrates the following features: 175 178 <ul> -
MapFish/client/examples/tree/tree_reorder.html
115 115 </head> 116 116 117 117 <body> 118 <div id="north"> 119 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: tree with reordering functions</p> 120 </div> 118 121 <div id="right"> 119 122 You can drag and drop the layers below: 120 123 <div id="tree"></div> -
MapFish/client/examples/recenter/basic.html
53 53 new Ext.BoxComponent({ // raw 54 54 region: 'north', 55 55 el: 'north', 56 height: 32 56 height: 32, 57 margins: {left: 5,top: 5} 57 58 }), 58 59 { 59 60 region: 'west', … … 89 90 region: 'center', 90 91 title: 'Map', 91 92 layout: 'fit', 92 xtype: ' mapcomponent',93 xtype: 'gx_mappanel', 93 94 map: map 94 95 }] 95 96 }); … … 101 102 <body> 102 103 <div id="west"></div> 103 104 <div id="north"> 104 <p style="font-size:1 4pt" align="center">MapFishrecenter</p>105 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: recenter</p> 105 106 </div> 106 107 <div id="center"></div> 107 108 </body> -
MapFish/client/examples/shortcuts/layout.html
10 10 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 11 11 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 12 12 13 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 14 13 15 <script type="text/javascript"> 14 16 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 15 17 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 37 39 Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); 38 40 39 41 40 var map = new OpenLayers.Map( 'olmap');42 var map = new OpenLayers.Map(); 41 43 42 44 var wms = new OpenLayers.Layer.WMS("OpenLayers WMS", 43 45 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}, {buffer: 0}); … … 59 61 var shortcuts = new mapfish.widgets.Shortcuts({ 60 62 map: map, 61 63 store: store, 64 defaults: {anchor: '100%'}, 62 65 templates: { 63 66 header: new Ext.Template("Choose a continent in the list"), 64 67 footer: new Ext.Template("The map will automatically center to this location") … … 71 74 new Ext.BoxComponent({ // raw 72 75 region:'north', 73 76 el: 'north', 74 height:32 77 height:32, 78 margins: {left: 5,top: 5} 75 79 }),{ 76 80 region:'south', 77 81 contentEl: 'south', … … 115 119 region:'center', 116 120 title: 'Map', 117 121 layout: 'fit', 118 xtype: ' mapcomponent',122 xtype: 'gx_mappanel', 119 123 map: map 120 124 } 121 125 ] … … 128 132 <p>Hi. I'm the west panel.</p> 129 133 </div> 130 134 <div id="north"> 131 <p >MapFish</p>135 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: complex shortcuts</p> 132 136 </div> 133 <div id="olmap">134 </div>135 137 <div id="south"> 136 <p> south - generally for informational stuff, also could be for status bar</p>138 <p></p> 137 139 </div> 138 140 139 141 </body> -
MapFish/client/examples/earth/earth.html
11 11 12 12 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 13 13 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 14 14 15 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 16 15 17 <script type="text/javascript"> 16 18 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 17 19 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 74 76 options.controls = [ 75 77 new OpenLayers.Control.Navigation() 76 78 ] 77 map = new OpenLayers.Map( 'mapContainer',options);79 map = new OpenLayers.Map(options); 78 80 79 var mapcomponent = new mapfish.widgets.MapComponent({map: map});80 81 81 // Creates OSM layer 82 82 var mapnik = new OpenLayers.Layer.TMS( 83 83 "OpenStreetMap", … … 139 139 }] 140 140 },{ 141 141 region: 'center', 142 contentEl: 'mapContainer',143 142 minWidth: 200, 144 title: 'MapFish 2D' 143 title: 'MapFish 2D', 144 xtype: "gx_mappanel", 145 map: map 145 146 },{ 146 147 region: 'east', 147 148 width: '40%', … … 160 161 } 161 162 ] 162 163 }); 163 164 164 165 var center = new OpenLayers.LonLat(-13625995.09, 4550849.74); 165 map.setCenter(center, 14); 166 map.setCenter(center, 14); 166 167 167 168 // Creates GE plugin 168 169 earth = new mapfish.Earth(map, 'map3dContainer', {lonLat: center, … … 239 240 <body> 240 241 <div id="header"><a href="http://www.mapfish.org/"><img src="mapfish.png" width="139" height="74" /></a><div id="title">MapFish and Google Earth Demonstration</div></div> 241 242 <div id="menu"></div> 242 <div id="mapContainer"></div>243 243 <div id="map3dContainer"> 244 244 </div> 245 245 <div id="footer" class="x-border-layout-ct">License Information: MapFish and Ext JS licensed under <a href="http://www.gnu.org/licenses/gpl-3.0.html">GPLv3</a>, Google Earth API <a href="http://code.google.com/intl/fr/apis/maps/terms.html">Terms of Service</a></div> -
MapFish/client/examples/geostat/proportionalSymbols.html
9 9 10 10 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 11 11 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 12 12 13 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 14 13 15 <script type="text/javascript"> 14 16 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 15 17 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 67 69 </style> 68 70 </head> 69 71 <body> 70 <h1 class="page-title">Proportional symbols Example</h1> 72 <div id="north"> 73 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: proportional symbols</p> 74 </div> 71 75 72 76 <div id="content"> 73 77 <div id="right"> -
MapFish/client/examples/editing/list.html
22 22 </style> 23 23 </head> 24 24 <body> 25 <div id=" title">26 < h1 style="font-size:20px">MapFish, FeatureList example</h1>25 <div id="north"> 26 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: feature list</p> 27 27 </div> 28 <div id="olmap">29 </div>30 28 <div id="help"> 31 29 <!-- if somebody can tell me why the squares are not shown, I'll be happy! --> 32 30 <ul class="list"> … … 47 45 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 48 46 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 49 47 48 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 49 50 50 <script type="text/javascript"> 51 51 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 52 52 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 111 111 /* 112 112 * Define OpenLayers map. 113 113 */ 114 var map = new OpenLayers.Map( 'olmap');114 var map = new OpenLayers.Map(); 115 115 116 116 var wms = new OpenLayers.Layer.WMS("OpenLayers WMS", 117 117 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}, {buffer: 0}); … … 301 301 frame: true, 302 302 border: true, 303 303 region: 'north', 304 contentEl: ' title'304 contentEl: 'north' 305 305 }, { 306 306 region: 'east', 307 307 title: 'Feature editing', … … 345 345 }, { 346 346 region:'center', 347 347 title: 'Map', 348 xtype: ' mapcomponent',348 xtype: 'gx_mappanel', 349 349 map: map 350 350 }] 351 351 }); -
MapFish/client/examples/editing/editing-panel.html
11 11 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 12 12 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 13 13 14 <script type="text/javascript" src="../../mfbase/geoext/lib/GeoExt.js"></script> 15 14 16 <script type="text/javascript"> 15 17 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 16 18 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 46 48 Ext.onReady(function() { 47 49 Ext.QuickTips.init(); 48 50 49 map = new OpenLayers.Map( 'olmap');51 map = new OpenLayers.Map(); 50 52 51 53 var setupMap = function(viewport) { 52 54 var map = viewport.findById('map').map; … … 123 125 new Ext.BoxComponent({ 124 126 region: 'north', 125 127 el: 'north', 126 height: 32 128 height: 32, 129 margins: {left: 5,top: 5} 127 130 }), { 128 131 region: 'east', 129 132 id: 'east-panel', … … 154 157 </script> 155 158 </head> 156 159 <body> 157 <div id="north"> </div>158 <p >Feature editing panel example</p>160 <div id="north"> 161 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: feature editing panel</p> 159 162 </div> 160 <div id="olmap"></div>161 163 <div id="helptext"> 162 164 <ul class="list"> 163 165 <li class="list">Choose a layer in the list of layers to edit</li>
