Hi Alexander,
You could use the BufferedShapeLayer. It reads the entire shape file
once, and then just regenerates and paints the graphics with projection
changes.
It's not something to really use for large shape files, like world-wide
data, but for smaller datasets, it's fine.
- Don
On Wednesday, January 16, 2002, at 09:22 AM, Sonntag, Alexander wrote:
> Hi,
>
> I have a problem in using the ShapeLayer class. I change the position
> of the
> OMGraphics in the
> OMGraphicList omgraphics per drag function. Therefore I use the
> generate()
> or regenerate() method
> on the OMGraphic that lies next to the clickpoint. These all works
> well. But
> when I zoom, pan or change
> the projection in another way the old positions of these OMGraphics
> reappear
> (the
> ones before dragging). It seems to me that every change of the
> projection
> causes a new readout
> of the shapefile. My question is: How can I achieve that all the
> ShapeLayers
> are read out only once (while
> starting the OMApplication) in order to change the projection without
> resetting the OMGraphics' position?
>
> Thanks in advance for any help
>
> Alexander Sonntag
>
> --
> [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"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Donald 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 Wed Jan 16 10:46:53 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT