RE: [OpenMap Users] Threading

From: John McMahon <jmcmahon_at_mobilvox.com>
Date: Wed, 20 Jan 2010 17:23:28 -0500

Thanks, that seems to have helped a little bit, but it's not a consistent
fix. Once in a while, it still displays an image with only some or no map
layers being displayed.

To answer your question, no part of the map should be displayed to the user
while generating this image.

-----Original Message-----
From: OpenMap Support [mailto:openmap_at_bbn.com]
Sent: Wednesday, January 20, 2010 1:58 PM
To: John McMahon
Cc: openmap-users_at_bbn.com
Subject: Re: [OpenMap Users] Threading

Hi John,

Is any part of OpenMap visible to the user, are the layers being used to
display anything?

If you don't have a map display, I would use the ImageServer object to
create the images for you, it'll use the Layers' renderDataForProjection()
methods which allows the layers to process the projection and render the
OMGraphics for that projection in a serialized manner.

Hope this helps,
Don



On Jan 20, 2010, at 1:21 PM, John McMahon wrote:

> All,
>
> I'm trying to use OpenMap to generate reports that include images from
maps drawn behind the scenes but not shown to the user. The problem seems
to be a threading issue:
>
> Order things need to happen
> 1. Layers need to load completely
> 2. Image needs to be taken from map layers
> 3. Report needs to be generated using map image
>
> Order things are actually happening because of threading
> 1. Image taken of map layers
> 2. Layers loading completely
> 3. Report generated
>
> This results in a report that has a blank image ( or the image may only
include some layers).
>
> Is there some way of getting a flag that tells us when the layers are done
loading/drawing?
>
> Thanks,
> John

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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"]
--
[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 Wed Jan 20 2010 - 17:42:25 EST

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