Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have tried many times with left no stone unturned, but all efforts came in vain. I might be of less knowledge in this area. Then through surfing I found this site as a newbie. I will be very obliged if I get a solution to the below mentioned scenarios.

In GeoServer when I click on "layer preview" button then "Open Layer" for preview, rendered map aligns to the left. I need to align center and give some CSS style and others to the rendered page as below.

  1. Left side panel for navigational purpose through layers made from PostGIS data.
  2. Middle side is intended map.
  3. Right side is for showing some attribute table for the left panel chosen layer

enter image description here

How can I do these?

share|improve this question
1  
The way the question is phrased makes it pretty off-topic. Currently, it asks how to style an HTML page which incidentally happens to have a map on it. Do you have to change the default Geoserver preview or are you actually trying to create a separate website? –  underdark Oct 14 '12 at 20:31
    
Sorry for behaving as factotum if i did.Yes sir, i want to build a spatial data driven website.But how to customize the look of the geoserver served map (e.g adding legend, setting dimension of map) You may have a look in the look at "docs.google.com/file/d/0B1NvUoakjNxwTThJMU5ybkpiR0U/…; if u have time, it is my webpage design. –  msi_g Oct 14 '12 at 20:53
add comment

1 Answer 1

The layer preview in Geoserver is meant to be just a preview, to check how your data looks. It is not meant to be used as a production website.

To design a website, with a map, you can use any of the client libraries like OpenLayers, or leaflet

To get advanced functionality like a Table of Contents, or an attribute table, you'll have to use other libraries like GeoExtjs

share|improve this answer
    
Sir thank u, would tell me how to develop an application where ,say,i want to see prevalence of diarrhea or other diseases against my spatial hierarchy ranges from higher to lower,a drop-down list for both diseases and spatial hierarchy to be built, where-from a map to be displayed accordingly.with several combo-boxes, and how to connect these boxes to data bases. Thanks in advance... –  msi_g Oct 15 '12 at 14:44
    
It is a rather wide question that you are asking. One would need to know what kind of data you have. How is the data for prevalence of diarrhea or other diseases organised? Is it a raster, or is it in attributes of your spatial layer, or is it a non spatial table in your database? –  Devdatta Tengshe Oct 16 '12 at 3:35
    
It is a non spatial table in my database –  msi_g Oct 19 '12 at 15:39
1  
@msi_g You'll need a WebService which can be used to query this non-spatial table. Based on this information, you can render your polygons. –  Devdatta Tengshe Oct 20 '12 at 6:52
    
@ It is a rather wide question that you are asking>>>> It attribute data (numeric) e.g 1-2-3-4 etc –  msi_g Nov 2 '12 at 14:17
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.