Opened 11 years ago

Closed 8 years ago

#594 closed defect (duplicate)

Quick Plot: Base layer groups are always printed even though they have been turned off.

Reported by: bmaehler Owned by: madair
Priority: P2 Milestone: Future
Component: Core Version: 2.0
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

By default Fusion QuickPlot prints always the first base layer of a map even though the layer has been turned off in legend tree.
Also Fusion MapSave saves always the first base layer.

Example:
http://www.geoportal.hilden.de/karten/stadtkarte/

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

Steps to reproduce :

  1. Turn on the layer "Luftbildkarte" and turn off the layer "Stadtplan"
  2. Call QuickPlot (Karte drucken -> PDF Druck)
  3. Print the map (Button "Drucken" in Task Pane)

or

  1. Call SaveMap (Karte speichern -> PNG-Format)

Possible cause of the problem (analysed by Jackie Ng):
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.
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.

Change History (1)

comment:1 by jng, 8 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #566

Note: See TracTickets for help on using tickets.