Re: [OpenMap Users] applet / image server

From: James Marca <jmarca@translab.its.uci.edu>
Date: Wed Feb 25 2004 - 12:52:07 EST

Hi Ben,

Wild guess suggestion. If you fix the zoom, then mapping from xy to
lon lat is easy (you said). Why is that? Because you know the
mapping a priori. How about throwing an extra query in to the OpenMap
back end to also give you the new (lon,lat) pairs for the corners of
your new zoomed/panned/reprojected/whatevered image. Then you have a
rough equivalence again between xy and lonlat. You just have to feed
these values to the applet. If you are using a templating system for
your webpage, you can pass those as variables to the template, and
your applet is good to go. If you aren't using a templating system,
well, I dunno. Start using one?

Good luck,

James E. Marca

At approximately Tue, Feb 24, 2004 at 11:22:16PM -0600, Ben Podoll wrote:
> Hi,
>
> I was hoping to use an applet (light weight version of the OpenMap's applet)
> that just basically can use a "plugin" to be the display...
>
> I had thought of writing my own code to handle user clicks for zooming and
> stuff and use OpenMap as the backend to just dish up the images. This was
> due to the fact that the openmap.jar (required for the applet) as well as
> many of the things that come along with the applet version was not needed.
>
> But now I was trying to figure out a way to do a hybrid version of the
> above, by still allowing myself to write a light weight applet but use the
> OpenMap functionality as the content pane of the applet per se.
>
> The problem I had with writing my own code was the fact that a user could
> click on the image produced and I would have to map x,y to lat,lon to figure
> out where they clicked... This was ok if I set the zoom level but if I allow
> zoom levels that get much more difficult.
>
> If I can use what OpenMap has already done, as far as allowing the user to
> zoom and pan etc. it would be great!

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Feb 25 12:52:29 2004

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT