On Tue, Jun 7, 2011 at 12:23 PM, Harikumar Reddy <harik....@gmail.com> 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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to