From: <dco...@us...> - 2009-02-13 09:39:44
|
Revision: 2157 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=2157&view=rev Author: dcorpataux Date: 2009-02-13 09:39:40 +0000 (Fri, 13 Feb 2009) Log Message: ----------- Fixed map panel bug Modified Paths: -------------- sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/geocat.js Modified: sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/geocat.js =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/geocat.js 2009-02-12 17:52:59 UTC (rev 2156) +++ sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/geocat.js 2009-02-13 09:39:40 UTC (rev 2157) @@ -83,7 +83,7 @@ initialize: function(baseUrl, authentified) { Ext.getBody().createChild({id:'map'}); // var map = geocat.map = createMap('map', false); - var mapCmp = new MapComponent('map'); + var mapCmp = new MapComponent('map', {drawPanel: false, displayLayertree: false}); var map = geocat.map = mapCmp.map; geocat.baseUrl = baseUrl; @@ -187,12 +187,13 @@ var searchForm = Ext.getCmp('searchForm'); geocat.updateComboSizes(searchForm, searchForm.body.dom.clientWidth); + mapCmp.fillToolbar(); geocat.fillSearchToolbar(toolbar); Ext.getCmp('mapRegion').on('resize', function() { this.map.updateSize(); }, geocat); -// map.setCenter(map.getMaxExtent().getCenterLonLat(), 0); + map.setCenter(map.getMaxExtent().getCenterLonLat(), 0); this.map.updateSize(); Ext.getCmp('anyField').focus(); @@ -1069,7 +1070,7 @@ }, fillSearchToolbar: function(toolbar) { -// fillStdToolbar(toolbar); +// fillStdToolbar(toolbar); // defined in resizableMap.js toolbar.add(new Ext.Toolbar.Separator()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |