Re: [OpenMap Users] Mysql and OpenMap

From: Don Dietrick <dietrick_at_bbn.com>
Date: Fri, 20 Aug 2004 11:53:31 -0400

Hi Andrea,

On Aug 19, 2004, at 2:48 PM, Andrea Leone wrote:

> Hi,
>
> I managed to visualize a Mysql Layer in OpenMap.
>
> Everything is ok until I try to change projection, I mean scale or
> view, the problem is that the lines, polylines and points that
> represent the data retrieved from Mysql don’t follow the new
> projection and stay still on the map.

It sounds like generate(projection) isn't being called on the
OMGraphics when the new projection is provided to the layer. The
prepare() method gets called when the projection changes, and you can
get the Projection using the layer.getProjection() method. You can
call OMGraphicList.generate(Projection) with it.

- Don


>
> If I change the projection before enabling the Mysql layer then the
> first visualization is correct, but again when I change projection the
> data are not updated on the visualization.
>
> Any idea of what I should do to make OpenMap scaling the object
> retrieved from Mysql as the map scale changes, changing location on
> the screen as the map location changes?
>
>  
>
> Thanks.
>
>  
>
> -Andrea
>
>  
>
>  
>
>  
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Aug 20 2004 - 11:55:51 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:05 EDT