[fusion-trac] #333: Bing: Map with Bing maps doesn't refresh when browser maximize

Fusion trac_fusion at osgeo.org
Thu Apr 15 13:11:57 EDT 2010


#333: Bing: Map with Bing maps doesn't refresh when browser maximize
---------------------+------------------------------------------------------
 Reporter:  jennyhe  |         Owner:  madair  
     Type:  defect   |        Status:  reopened
 Priority:  P2       |     Milestone:  2.1     
Component:  Widgets  |       Version:  1.1.1   
 Severity:  Major    |    Resolution:          
 Keywords:           |   External_id:  1279971 
    State:  New      |       Browser:  All     
       Os:  All      |  
---------------------+------------------------------------------------------
Comment (by chrisclaydon):

 I've added !OpenLayersPatch2.patch. This resolves the problem where other
 layers do not resize correctly when the base layer is a Bing map.

 The cause of the problem is that after VEMap.Resize() has been called on
 the Bing layer, it still takes a while before this layer adjusts to the
 change. In the meantime, the other non-base layers try to resize too, but
 their offsets are calculated incorrectly, because they rely on the base
 layer to calculate the pixel offset of their top-left corner in mapping
 coordinates.

 The patch adds an event handler to redraw all the non-base layers when the
 VEMap object has actually finished resizing, and is thus able to return
 the correct pixel offsets.

 I will be making this change to the adsk/2.2gp sandbox. Please review and
 let me know if it should go into trunk.

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/333#comment:6>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list