Re: [OpenMap Users] Re: DayNightLayer blinking during refresh after updating to OpenMap4.6.2

From: Don Dietrick <>
Date: Sun, 5 Jun 2005 11:18:00 -0400

On Jun 1, 2005, at 1:30 PM, Joey Heinrich wrote:

> Just wanted to let you know I got the issue of the DayNightLayer
> randomly appearing when a map was loaded taken care of. Apparently
> the app had been adding their layers directly to the mapHandler and
> then adding the mapBean to the mapHandler. After looking at the
> SimpleMap example for the 100th time, I realized that the layers in
> that example are added to the mapBean, which is then added to the
> mapHandler.

Which SimpleMap example? The basic SimpleMap doesn't use a MapHandler.

> I made these changes in our app and it eliminated the
> problem of the dayNightLayer randomly appearing even though it
> shouldn't have been. Why it worked? I'm not sure...maybe you can
> explain that to me...but it does! Not sure why this wasn't an issue
> when we were using 4.5.3, but became an issue when we upgraded to
> 4.6.2

You should be adding a LayerHandler to the MapHandler, and adding
layers to the MapHandler or LayerHandler.

> Doing this also seemed to reduce my blinking issue somewhat. That, in
> conjunction with commenting out a doPrepare() call on the
> dayNightLayer when the map is updated, has made the blinking virtually
> non-existant. It still does blink on occassion but I'm guessing it's
> a video card issue since the rate of the blinking seems to be directly
> related to how often the layer was being generated. When it chooses
> to blink is also totally random so I don't see how it can be code
> related.

I think it's related to how your application is configured. I can't
replicate your problem, on Windows or Mac.

- Don

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Sun Jun 05 2005 - 11:23:52 EDT

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