[fusion-trac] #594: Quick Plot: Base layer groups are always printed even though they have been turned off.

Fusion trac_fusion at osgeo.org
Tue Sep 3 10:35:56 PDT 2013


#594: Quick Plot: Base layer groups are always printed even though they have been
turned off.
------------------------+---------------------------------------------------
   Reporter:  bmaehler  |       Owner:  madair
       Type:  defect    |      Status:  new   
   Priority:  P2        |   Milestone:  Future
  Component:  Core      |     Version:  2.0   
   Severity:  Major     |    Keywords:        
External_id:            |       State:  New   
    Browser:  All       |          Os:  All   
------------------------+---------------------------------------------------
 By default Fusion QuickPlot prints always the first base layer of a map
 even though the layer has been turned off in legend tree.[[BR]]
 Also Fusion MapSave saves always the first base layer.[[BR]]

 Example:[[BR]]
 http://www.geoportal.hilden.de/karten/stadtkarte/

 This map contains two base layer:[[BR]]
 A city map (layer Stadtplan) which is the first base layer and an aerial
 map (layer Luftbildkarte), the second base layer.[[BR]]

 Steps to reproduce :[[BR]]
 1. Turn on the layer "Luftbildkarte" and turn off the layer
 "Stadtplan"[[BR]]
 2. Call QuickPlot (Karte drucken -> PDF Druck)[[BR]]
 3. Print the map (Button "Drucken" in Task Pane)[[BR]]
 or[[BR]]
 4. Call SaveMap (Karte speichern -> PNG-Format)[[BR]]

 Possible cause of the problem (analysed by Jackie Ng):[[BR]]
 When Fusion makes OpenLayers.Layer.MapGuide instances for each tiled layer
 group, it doesn't seem to be attaching the runtime map name to these
 instances. Thus when these groups are toggled on/off in the Legend,
 there's no map name to identify the server-side MgMap instance where we
 need to toggle these base layer groups on and off.
 [[BR]]
 When you do a QuickPlot, it's doing a RenderMap of the MgMap instance
 which is not aware that the base layer group has been turned off, so
 that's probably why those layers are still drawn in a Quick Plot or any
 Rendering Service API.

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/594>
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