Of course, this is a fairly serious challenge, but it would be optimal if OpenLayers could do something a little it like Views - so that users could see what a layer, preset, and style look like before clicking Save. This will likely require some AHAH magic to make sure that it doesn't put any extra load on the authors of layer types, etc., and also some Javascript magic to construct, render & destroy OpenLayers objects.
Comments
Comment #1
zzolo commentedYes, this would be great! One possibility, instead of AHAH magic we could simply provide a Preview button. This would be less coding, and might be easier for the user in case there are errors. This could also just be an intermediate step until the AHAH magic gets put in place.
Comment #2
tmcw commentedYeah, by AHAH magic I meant that the conversion of forms into OpenLayers module javascript should be powered by the module, rather than rebuilding anything in Javascript.
Comment #3
tmcw commentedComment #4
zzolo commentedI had started on this on my local copy, which I thought would be straight forward, but ran into some problems with caching and rebuilding the form. Hopefully I can try again soon.
As far as previews for layers and styles, what is the best way to handle the display, as we will have to have a map to preview things? I suppose we can just come up with a basic map that could work for each, or we could add a field that lets the user pick the preset to preview with.
Comment #5
zzolo commentedMarking this in the 7.x version. I still think its a good interface improvement.
Comment #6
zzolo commentedFixed. Well, there are previews for maps and styles (both edit and list). Layers are a bit harder, as it more dependent on the map. Going to mark as fixed. I would rather see resource to a complete rewrite of the UI in 3.x.