Yes, I would have to recalculate the images for each zoom level, but I think it should be fast enough to do statelessly, for a first attempt (i.e., no prerendering or caching) just request one image from the server at a time, as needed.
I aim to use this for interactive plotting in Sage (http://sagemath.org), so I already have a server-side method for generating the images. One of the difficulty is plotting the axes. The axes should probably start off centered in the image, but then as you drag the plot around, the axes should move and eventually "get stuck" along the sides of the images, similarly to how Apple's old calculator behaved. But yes, a separate layer for the axes sounds like a good idea. Thanks for the suggestions, -Bobby On Sun, Dec 7, 2008 at 10:35 AM, <[EMAIL PROTECTED]> wrote: > Hi Bobby, > > from mypoint of view, it could be possible to abuse OL as a viewer for your > mathematical plots. > > You just have to create a new layer, whose points are calculated based on a > mathematical function. > But here arise my problems: > Coordinates are from my point of view discrete values. Your math-function is > non discret. > So your layer could calculate its values based on the x-coordinates of your > actual window, where each y-value would be connect by a line. > When zooming in each line would first show an interpolation of the values > between the y-values of 2 x-coordinates, but you should do a recalculating. > But it could work. > > You sould think about the location of your calculating process: > client-side within javascript or server-side with ????? > > > For drawing the background lines and units of your coordinate-system you > can use a image layer > > > Cheers Carsten > > > > > > > Quoting "Bobby Moretti" <[EMAIL PROTECTED]>: > >> Hi, >> >> I'm interested in making an interactive, web-based viewer for >> mathematical plots with Google maps-style dragging and zooming. I >> stumbled across OpenLayers, and it seems like it might be a good tool >> to use for this. >> >> I've looked through some of the documentation, but I'm having trouble >> figuring out how to go about setting up a custom data source. >> >> Is this even feasible? Is OpenLayers the right framework for such a >> viewer, or should I be looking for something else? >> >> Thanks for any input, >> >> -Bobby >> >> -- >> Bobby Moretti >> [EMAIL PROTECTED] >> _______________________________________________ >> Users mailing list >> [email protected] >> http://openlayers.org/mailman/listinfo/users >> > > -- Bobby Moretti [EMAIL PROTECTED] _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
