Hi Andrea, The preview looks good, and this will be a great tool. One thing to beware of is adding complexity makes it less approachable to novice users who might not know what all those options are. Perhaps you can use your spiffy new js skills to add some tool tips or "whats this".
Another idea might be an "advanced" pane or something on the pane for some of the more advanced options like CQL filter. Anyways, I like the the drop downs along the top as its non-intrusive. +1 on making it the new preview. 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:4007,481d8a1a37634901796417! > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > * Tiling: > * Antialias: > * Format: > * Palette: > * Width: > * Height: > > /Click on the map to get feature info/ > !DSPAM:4007,481d8a1a37634901796417! > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 > > !DSPAM:4007,481d8a1a37634901796417! > > > ------------------------------------------------------------------------ > > _______________________________________________ > Geoserver-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-devel > > > !DSPAM:4007,481d8a1a37634901796417! -- Justin Deoliveira The Open Planning Project [EMAIL PROTECTED] ------------------------------------------------------------------------- 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
