Hi Andrea,

was playig with it for a while and seems certainly very useful.

One usefull feature to add would be ability to select the style to apply. 
Though I realize it would be not that easy as may require capabilities 
parsing and we know what happens with the huge list of crs's.

Tip: to make it work with ports other than 8080 and contexts other 
than /geoserver its only needed to use relative urls (current preview page 
suffers from the same defect).
To do so, just change any occurrence of "http://localhost:8080/geoserver/wms"; 
by "../wms", and "http://localhost:8080geoserver/openlayers/OpenLayers.js"; 
by "openlayers/OpenLayers.js"

nice work, worths becoming the new preview imho.

Gabriel
On Sunday 04 May 2008 12:03:29 pm Andrea Aime wrote:
> Hi,
> during last weekends I tried to improve a little my
> html/css/javascript-fu and now I've taken a crack at
> http://jira.codehaus.org/browse/GEOS-1382,
> that is, making the OL preview a little more useful.
>
> The result is attached (screenshot + html file). You can try it out
> live by putting that state.htm file in your GEOSERVER_DATA_DIR/www
> directory and try it out live.
>
> What it adds? Well, a series of combos allowing you to:
> * switch between tiled and untiled in an obvious way (instead of
>    being hidden inside a map control)
> * play with antialias settings
> * change the tile format
> * change the palette (this assumes you have those palettes in the
>    list on your computer, if not, it won't work)
> * change the map preview size (width and height), something I
>    do very often and that's quite annoying when you have to
>    hunt down the params in the url
>
> The thing also uncovered a few issues, for example text
> only antialiasing is not working properly, antialiasing and
> palette interact with each other generating some unpleasant
> results (jira issues opened).
>
> Well, what do you think about it? Worth becoming the new preview?
> I find it quite handy, yet not really beautiful. Also, the
> css/javascript in the HTML got a lot bigger... which might
> be an issue for people willing to take the preview as
> a starting point... or not, if they want to allow the user to
> choose between map quality and tile size for example.
>
> To tell you the truth, I was tempted to add CQL filtering
> and metatiling cotrol to the mix as well, but the toolbar was
> becoming a little too big. With stuff like extjs one could turn
> the toolbar into a less obstrusive dialog, yet, that would
> increase the size of the preview (more js libs to load)
> and the complexity of the javascript even further...
>
> Well, opinions welcomed, fire away :)
> Cheers
> Andrea
>
>
> !DSPAM:4045,481d8a1b37611961014482!



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to