Ticket #497: Add_gx_mappanel,_add_titles,_some_fixes,_remove_setCenter,_addLayers.patch
| File Add_gx_mappanel,_add_titles,_some_fixes,_remove_setCenter,_addLayers.patch, 32.9 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 … … 42 44 43 45 var wms = new OpenLayers.Layer.WMS("OpenLayers WMS", 44 46 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}, {buffer: 0}); 45 map.addLayers([wms]);46 47 47 48 var layerOverrides={ 48 49 "OpenLayers WMS": {overview: true} … … 66 67 new Ext.BoxComponent({ // raw 67 68 region: 'north', 68 69 el: 'north', 69 height: 32 70 height: 32, 71 margins: {left: 5,top: 5} 70 72 }), 71 73 { 72 74 region: 'west', … … 124 126 region: 'center', 125 127 title: 'Map', 126 128 layout: 'fit', 127 xtype: ' mapcomponent',129 xtype: 'gx_mappanel', 128 130 map: map, 129 tbar: toolbar 131 layers: [wms], 132 tbar: toolbar, 133 zoom: 3, 134 center:new OpenLayers.LonLat(8.5, 0) 130 135 }] 131 136 }); 132 133 map.setCenter(new OpenLayers.LonLat(8.5, 0), 3);134 137 }); 135 138 </script> 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
76 76 </style> 77 77 </head> 78 78 <body> 79 <h1 class="page-title">Choropleths Example</h1> 80 79 <div id="north"> 80 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: chloropleths</p> 81 </div> 81 82 <div id="content"> 82 83 <div id="right"> 83 84 <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 … … 45 47 46 48 var wms = new OpenLayers.Layer.WMS("OpenLayers WMS", 47 49 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}, {buffer: 0}); 48 map.addLayers([wms]);49 50 50 51 var summits = new OpenLayers.Layer.WMS("Summits", 51 52 "http://demo.mapfish.org/mapfishsample/trunk/wms?", … … 94 95 new Ext.BoxComponent({ // raw 95 96 region: 'north', 96 97 el: 'north', 97 height: 32 98 height: 32, 99 margins: {left: 5,top: 5} 98 100 }), 99 101 { 100 102 region: 'west', … … 195 197 region: 'center', 196 198 title: 'Map', 197 199 layout: 'fit', 198 xtype: 'mapcomponent', 200 xtype: 'gx_mappanel', 201 layers: [wms], 199 202 map: map, 200 tbar: toolbar 203 tbar: toolbar, 204 zoom: 3, 205 center:new OpenLayers.LonLat(8.5, 0) 201 206 }] 202 207 }); 203 208 204 map.setCenter(new OpenLayers.LonLat(8.5, 0), 3);205 209 }); 206 210 </script> 207 211 </head> 208 212 <body> 209 213 <div id="west"></div> 210 214 <div id="north"> 211 <p style="font-size:1 4pt" align="center">MapFish printer</p>215 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: advanced print</p> 212 216 </div> 213 217 <div id="center"></div> 214 218 <div id="help"> -
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 border: false 132 border: false, 133 center: new OpenLayers.LonLat(5,45), 134 zoom: 6 130 135 }] 131 136 },{ 132 137 region: 'south', … … 306 311 createToolbar(); 307 312 createViewport(); 308 313 309 map.setCenter(new OpenLayers.LonLat(5,45), 6);310 311 314 setToolbarContent(); 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/shortcuts/shortcuts.html
48 48 49 49 map.addLayers([wms]); 50 50 map.addControl(new OpenLayers.Control.LayerSwitcher()); 51 map. setCenter(new OpenLayers.LonLat(17, 2), 2);51 map. setCenter(new OpenLayers.LonLat(17, 2), 2); 52 52 53 53 var store = new Ext.data.SimpleStore({ 54 54 fields: ['value', 'text', 'bbox'], -
MapFish/client/examples/map/multiple_maps.html
70 70 </script> 71 71 72 72 <style type="text/css"> 73 .map, .mapContainer,#firstMap, #secondMap {73 .map, #firstMap, #secondMap { 74 74 width: 300px; 75 75 height: 200px; 76 76 border: 1px solid #999; … … 82 82 .x-panel-body { 83 83 border: none !important; 84 84 } 85 #north { 86 margin-top:5px; 87 margin-left:5px; 88 } 85 89 </style> 86 90 </head> 87 91 88 92 <body> 93 <div id="north"> 94 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: multiple maps</p> 95 </div> 96 <br> 89 97 <div id="firstMap" class="map"></div> 90 98 <div id="firstTree" class="tree"></div> 91 99 -
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( … … 77 79 displayOutsideMaxExtent: true 78 80 } 79 81 ); 80 81 map.addLayers([gmap, yahoo, yahoosat, yahoohyb, mapnik]); 82 83 map.setCenter(new OpenLayers.LonLat(17, 2), 2); 84 85 86 var mapcomponent = new mapfish.widgets.MapComponent({map: map}); 87 82 88 83 var viewport = new Ext.Viewport({ 89 84 layout:'border', 90 85 items:[ 91 86 new Ext.BoxComponent({ // raw 92 87 region: 'north', 93 88 el: 'north', 94 height: 32 89 height: 32, 90 margins: {left: 5,top: 5} 95 91 }),{ 96 92 region: 'south', 97 93 contentEl: 'south', … … 132 128 region: 'center', 133 129 title: 'Map', 134 130 layout: 'fit', 135 items: mapcomponent 131 xtype: 'gx_mappanel', 132 layers: [gmap, yahoo, yahoosat, yahoohyb, mapnik], 133 map: map 136 134 } 137 135 ] 138 136 }); … … 157 155 </head> 158 156 <body> 159 157 <div id="north"> 160 <p >MapFish</p>158 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: usage of maps in spherical mercator</p> 161 159 </div> 162 160 <div id="center"> 163 161 </div> 164 162 <div id="south"> 165 <p> south - generally for informational stuff, also could be for status bar</p>163 <p></p> 166 164 </div> 167 165 168 166 </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 … … 35 37 36 38 Ext.onReady(function() { 37 39 38 var map = new OpenLayers.Map( $('center'));40 var map = new OpenLayers.Map(); 39 41 40 42 var wms = new OpenLayers.Layer.WMS("OpenLayers WMS", 41 43 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}, {buffer: 0}); 42 44 43 map.addLayers([wms]);44 45 map.addControl(new OpenLayers.Control.LayerSwitcher()); 45 map.setCenter(new OpenLayers.LonLat(17, 2), 2);46 46 47 47 var viewport = new Ext.Viewport({ 48 48 layout:'border', … … 50 50 new Ext.BoxComponent({ // raw 51 51 region: 'north', 52 52 el: 'north', 53 height: 32 53 height: 32, 54 margins: {left: 5,top: 5} 54 55 }),{ 55 56 region: 'south', 56 57 contentEl: 'south', … … 103 104 region: 'center', 104 105 title: 'Map', 105 106 layout: 'fit', 106 xtype: 'mapcomponent', 107 xtype: 'gx_mappanel', 108 layers: [wms], 107 109 map: map 108 110 } 109 111 ] … … 114 116 <body> 115 117 <div id="west"></div> 116 118 <div id="north"> 117 <p >MapFish</p>119 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: map in complex layout</p> 118 120 </div> 119 <div id="center"></div>120 121 <div id="south"> 121 <p> south - generally for informational stuff, also could be for status bar</p>122 <p></p> 122 123 </div> 123 124 124 125 </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}); 41 43 42 map.addLayers([wms]);43 44 map.addControl(new OpenLayers.Control.LayerSwitcher()); 44 map.setCenter(new OpenLayers.LonLat(17, 2), 2);45 45 46 46 var window = new Ext.Window({ 47 47 title: 'Map', … … 53 53 plain: true, 54 54 bodyStyle: 'padding:5px;', 55 55 items: [{ 56 xtype: 'mapcomponent', 57 map: map 56 xtype: 'gx_mappanel', 57 map: map, 58 layers: [wms] 58 59 }] 59 60 }); 60 61 window.show(); … … 100 101 body element must not start with text to prevent IE bug 101 102 http://extjs.com/forum/showthread.php?t=7912&highlight=createRange 102 103 --> 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"> 104 <div id="north"> 105 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: simple map in complex layout</p> 106 106 </div> 107 </div> 107 108 108 109 </body> 109 110 </html> -
MapFish/client/examples/search/c2corg.html
8 8 <script type="text/javascript" src="../../mfbase/openlayers/lib/OpenLayers.js"></script> 9 9 10 10 <script type="text/javascript" src="../../mfbase/ext/adapter/ext/ext-base.js"></script> 11 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 12 13 11 <script type="text/javascript" src="../../mfbase/ext/ext-all-debug.js"></script> 12 14 13 <script type="text/javascript"> 15 14 // Because of a bug in Firefox 2 we need to specify the MapFish base path. 16 15 // See https://bugzilla.mozilla.org/show_bug.cgi?id=351282 … … 163 162 </head> 164 163 165 164 <body> 166 <h1 class="page-title">Search Example</h1> 165 166 <div id="north"> 167 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: search</p> 168 </div> 167 169 <div id="content"> 168 170 <div id="map" class="float-left"></div> 169 171 <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
45 45 46 46 var wms = new OpenLayers.Layer.WMS("OpenLayers WMS", 47 47 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}, {buffer: 0}); 48 map.addLayers([wms]);49 48 50 49 var viewport = new Ext.Viewport({ 51 50 layout:'border', … … 53 52 new Ext.BoxComponent({ // raw 54 53 region: 'north', 55 54 el: 'north', 56 height: 32 55 height: 32, 56 margins: {left: 5,top: 5} 57 57 }), 58 58 { 59 59 region: 'west', … … 89 89 region: 'center', 90 90 title: 'Map', 91 91 layout: 'fit', 92 xtype: 'mapcomponent', 93 map: map 92 xtype: 'gx_mappanel', 93 map: map, 94 layers: [wms], 95 center: new OpenLayers.LonLat(8.5, 0), 96 zoom: 7 94 97 }] 95 98 }); 96 97 map.setCenter(new OpenLayers.LonLat(8.5, 0), 3);98 99 }); 99 100 </script> 100 101 </head> 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}); 44 46 45 map.addLayers([wms]);46 47 map.addControl(new OpenLayers.Control.LayerSwitcher()); 47 map.setCenter(new OpenLayers.LonLat(17, 2), 2);48 48 49 49 var store = new Ext.data.SimpleStore({ 50 50 fields: ['value', 'text', 'bbox'], … … 59 59 var shortcuts = new mapfish.widgets.Shortcuts({ 60 60 map: map, 61 61 store: store, 62 defaults: {anchor: '100%'}, 62 63 templates: { 63 64 header: new Ext.Template("Choose a continent in the list"), 64 65 footer: new Ext.Template("The map will automatically center to this location") … … 71 72 new Ext.BoxComponent({ // raw 72 73 region:'north', 73 74 el: 'north', 74 height:32 75 height:32, 76 margins: {left: 5,top: 5} 75 77 }),{ 76 78 region:'south', 77 79 contentEl: 'south', … … 115 117 region:'center', 116 118 title: 'Map', 117 119 layout: 'fit', 118 xtype: 'mapcomponent', 119 map: map 120 xtype: 'gx_mappanel', 121 map: map, 122 layers: [wms] 120 123 } 121 124 ] 122 125 }); … … 128 131 <p>Hi. I'm the west panel.</p> 129 132 </div> 130 133 <div id="north"> 131 <p >MapFish</p>134 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: complex shortcuts</p> 132 135 </div> 133 <div id="olmap">134 </div>135 136 <div id="south"> 136 <p> south - generally for informational stuff, also could be for status bar</p>137 <p></p> 137 138 </div> 138 139 139 140 </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", … … 100 100 "Google Hybrid", 101 101 {type: G_HYBRID_MAP, 'sphericalMercator': true} 102 102 ); 103 104 map.addLayers([mapnik, gmap, gsat, ghyb]); 105 103 106 104 var toolbar = new mapfish.widgets.toolbar.Toolbar({ 107 105 map: map, 108 106 configurable: false … … 139 137 }] 140 138 },{ 141 139 region: 'center', 142 contentEl: 'mapContainer',143 140 minWidth: 200, 144 title: 'MapFish 2D' 141 title: 'MapFish 2D', 142 xtype: "gx_mappanel", 143 layers: [mapnik, gmap, gsat, ghyb], 144 map: map, 145 center: new OpenLayers.LonLat(-13625995.09, 4550849.74), 146 zoom: 14 145 147 },{ 146 148 region: 'east', 147 149 width: '40%', … … 160 162 } 161 163 ] 162 164 }); 163 164 var center = new OpenLayers.LonLat(-13625995.09, 4550849.74); 165 map.setCenter(center, 14); 166 165 167 166 // Creates GE plugin 168 167 earth = new mapfish.Earth(map, 'map3dContainer', {lonLat: center, 169 168 altitude: 50, … … 239 238 <body> 240 239 <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 240 <div id="menu"></div> 242 <div id="mapContainer"></div>243 241 <div id="map3dContainer"> 244 242 </div> 245 243 <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
67 67 </style> 68 68 </head> 69 69 <body> 70 <h1 class="page-title">Proportional symbols Example</h1> 70 <div id="north"> 71 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: proportional symbols</p> 72 </div> 71 73 72 74 <div id="content"> 73 75 <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}); 118 118 119 map.addLayers([wms]);120 119 map.addControl(new OpenLayers.Control.LayerSwitcher()); 121 map.setCenter(new OpenLayers.LonLat(17, 2), 2);122 120 123 121 /* 124 122 * Define record type. … … 301 299 frame: true, 302 300 border: true, 303 301 region: 'north', 304 contentEl: ' title'302 contentEl: 'north' 305 303 }, { 306 304 region: 'east', 307 305 title: 'Feature editing', … … 345 343 }, { 346 344 region:'center', 347 345 title: 'Map', 348 xtype: 'mapcomponent', 346 xtype: 'gx_mappanel', 347 layers: [wms], 349 348 map: map 350 349 }] 351 350 }); -
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 … … 41 43 // reference local blank image 42 44 Ext.BLANK_IMAGE_URL = '../../mfbase/ext/resources/images/default/s.gif'; 43 45 44 var map;45 46 46 Ext.onReady(function() { 47 47 Ext.QuickTips.init(); 48 48 49 map = new OpenLayers.Map('olmap');49 var map = new OpenLayers.Map(); 50 50 51 var setupMap = function(viewport) { 52 var map = viewport.findById('map').map; 53 var wms = new OpenLayers.Layer.WMS("OpenLayers WMS", 54 "http://labs.metacarta.com/wms/vmap0", 55 {layers: 'basic'}, 56 {buffer: 0} 57 ); 58 map.addLayers([wms]); 59 map.addControl(new OpenLayers.Control.LayerSwitcher()); 60 map.setCenter(new OpenLayers.LonLat(17, 2), 3); 61 }; 51 var wms = new OpenLayers.Layer.WMS("OpenLayers WMS", 52 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}, {buffer: 0}); 53 54 map.addControl(new OpenLayers.Control.LayerSwitcher()); 62 55 63 var layerConfig = {56 var layerConfig = { 64 57 polygons: { 65 58 text: 'Polygons', 66 59 protocol: new mapfish.Protocol.MapFish({ … … 118 111 119 112 new Ext.Viewport({ 120 113 layout: 'border', 121 listeners: {'afterlayout': {'fn': setupMap}},122 114 items: [ 123 115 new Ext.BoxComponent({ 124 116 region: 'north', 125 117 el: 'north', 126 height: 32 118 height: 32, 119 margins: {left: 5,top: 5} 127 120 }), { 128 121 region: 'east', 129 122 id: 'east-panel', … … 143 136 }] 144 137 }, { 145 138 region: 'center', 146 id: 'map',147 139 title: 'Map', 148 140 map: map, 149 xtype: 'mapcomponent' 141 xtype: 'gx_mappanel', 142 layers: [wms] 150 143 } 151 144 ] 152 145 }); … … 154 147 </script> 155 148 </head> 156 149 <body> 157 <div id="north"> </div>158 <p >Feature editing panel example</p>150 <div id="north"> 151 <p style="font-size:16pt;color:#15428B;font-weight:bold">MapFish example: feature editing panel</p> 159 152 </div> 160 <div id="olmap"></div>161 153 <div id="helptext"> 162 154 <ul class="list"> 163 155 <li class="list">Choose a layer in the list of layers to edit</li>
