[OpenLayers-Users] Using OpenLayers for interactive plotting

Bobby Moretti bobmoretti at gmail.com
Tue Dec 9 16:22:50 EST 2008


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,  <eider at fh-bingen.de> 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" <bobmoretti at gmail.com>:
>
>> 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
>> moretti at u.washington.edu
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>
>



-- 
Bobby Moretti
moretti at u.washington.edu



More information about the Users mailing list