Hi Chris,
Simple fix -
On Tuesday, February 26, 2002, at 12:23 PM, Chris Hopkins wrote:
> urlrloc.setLocation(newlat, newlon);
urlloc.generate(cur_proj);
> repaint();
> }
>
When an OMGraphic changes position, it needs to be generated with the
current projection so it knows where to draw itself later.
Cheers,
Don
> public void projectionChanged(ProjectionEvent e)
> {
> cur_proj = e.getProjection();
> urlrloc.generate(cur_proj);
> }
>
> public void paint(java.awt.Graphics g)
> {
> System.out.println("\npainting...");
> System.out.println("Location is " + urlrloc.lat + "," + urlrloc.lon);
> if(cur_proj != null)
> {
> System.out.println("generating graphic...");
> urlrloc.generate(cur_proj);
> }
> urlrloc.render(g);
> }
> }
>
> --
> [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"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [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 Tue Feb 26 12:49:17 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT