Assuming the list of layers and their hounding boxes don't change much, you can also modify the height and width parameters in the url and bookmark the resulting page, or share links to it, etc. If this is sufficient for your needs it is probably going to be easier than modifying the java code.
-- David Winslow OpenGeo - http://opengeo.org/ On Tuesday, June 7, 2011, Harikumar Reddy <[email protected]> wrote: > Hi Andrea, > > Thanks for quick guidance. I will try to modify. I am a GIS (WebGIS) > administrator too, but need to check whole layers many time. > If modified, it saves some of my time. > > Regards, > Hari. > > On Tue, Jun 7, 2011 at 4:10 PM, Andrea Aime <[email protected]> > wrote: > > > On Tue, Jun 7, 2011 at 12:23 PM, Harikumar Reddy <[email protected]> wrote: >> Hi, >> >> How to change/customize Geoserver default preview window size (Width & >> Height). In which file, we need to edit? or i want to include 1100*750 >> values in the height of the preview window and fix the window default size >> also same. >> >> I have tried by changing the values of openlayers.js present in the >> webapps/geoserver/openlayers/openayers.js....but preview window size is >> same. >> >> Anyone suggest how to change? > > The preview tool is meant to be a way to quickly look at the data and styling > for the admin, it's not meant to be a customizeable map maker. > Anyways, if you really want to customize it anyways you'll have to modify > > DefaultWebMapService.autoSetBoundsAndSize(GetMapRequest getMap) > http://svn.codehaus.org/geoserver/trunk//src/wms/src/main/java/org/geoserver/wms/DefaultWebMapService.java > > and then rebuild, or go and modify the Freemarker template used to generate > the html client here: > http://svn.codehaus.org/geoserver/trunk/src/wms/src/main/resources/org/geoserver/wms/map/OpenLayersMapTemplate.ftl > > In either case you'll then have to rebuild the wms.jar and replace it in the > GeoServer web application > > Cheers > Andrea > > -- > ------------------------------------------------------- > Ing. Andrea Aime > GeoSolutions S.A.S. > Tech lead > > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > > phone: +39 0584 962313 > fax: +39 0584 962313 > > http://www.geo-solutions.it > http://geo-solutions.blogspot.com/ > http://www.youtube.com/user/GeoSolutionsIT > http://www.linkedin.com/in/andreaaime > http://twitter.com/geowolf > > ------------------------------------------------------- > > ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
