Ticket #193 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

SaveMap widget is broken

Reported by: chrisclaydon Owned by: pagameba
Priority: P1 Milestone: 2.0
Component: Widgets Version: SVN
Severity: Major Keywords:
Cc: External ID: 1177426
state: Analysis Requested Browser: All
Operating System: All

Description

Adding a SaveMap widget to a layout causes problems loading the widgets.

This appears to stem from a call to Object.inheritFrom in the SaveMap.js initializeWidget method.

Change History

Changed 4 years ago by chrisclaydon

  • external_id set to 1177426

Changed 4 years ago by chrisclaydon

Object.inheritFrom is called only if the format is set to DWF. This appears to make the object initialize itself twice, and it fails the second time through.

If the call to Object.inheritFrom is removed, the widget initialization succeeds, but some of the paths in the widget are incorrect, since the MapGuide folder has been moved.

Also, in browsers other than IE, the widget loads the new image into a hidden frame, which doesn't allow the user to view or save it.

Changed 4 years ago by pagameba

  • owner changed from madair to pagameba
  • status changed from new to assigned

looking at this now

Changed 4 years ago by pagameba

  • status changed from assigned to closed
  • resolution set to fixed

(In [1723]) Fixes #193. Remove the unnecessary call to inheritFrom and rename the execute method to activate

Changed 4 years ago by chrisclaydon

  • status changed from closed to reopened
  • resolution fixed deleted

The submission allows the widget to initialize, but the paths are still wrong for the scripts that are invoked, and for non-IE browsers the code will still just load an image in a hidden frame.

Changed 4 years ago by madair

  • status changed from reopened to closed
  • resolution set to fixed

(In [1739]) closes #193: set format param in upper case and adjust path to php

Changed 4 years ago by madair

(In [1740]) re #193: also set defautl value to upper case

Changed 4 years ago by chrisclaydon

(In [1744]) re #193 Update SaveMap? widget to support basic settings as defined in the widget info file.

Changed 4 years ago by chrisclaydon

(In [1745]) re #193 - Port changes made to trunk stream to fix SaveMap? widget into mg21 stream.

Changed 4 years ago by chrisclaydon

(In [1746]) re #193 - Fix handling of Scale = 0

Changed 4 years ago by chrisclaydon

(In [1747]) re #193 - Fix handling of Scale = 0

Note: See TracTickets for help on using tickets.