Re: [OpenMap Users] Threading

From: OpenMap Support <openmap_at_bbn.com>
Date: Wed, 20 Jan 2010 13:58:13 -0500

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"]
Received on Wed Jan 20 2010 - 13:58:21 EST

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