Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#193 closed defect (fixed)

SaveMap widget is broken

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

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 (11)

comment:1 by chrisclaydon, 15 years ago

External ID: 1177426

comment:2 by chrisclaydon, 15 years ago

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.

comment:3 by pagameba, 15 years ago

Owner: changed from madair to pagameba
Status: newassigned

looking at this now

comment:4 by pagameba, 15 years ago

Resolution: fixed
Status: assignedclosed

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

comment:5 by chrisclaydon, 15 years ago

Resolution: fixed
Status: closedreopened

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.

comment:6 by madair, 15 years ago

Resolution: fixed
Status: reopenedclosed

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

comment:7 by madair, 15 years ago

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

comment:8 by chrisclaydon, 15 years ago

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

comment:9 by chrisclaydon, 15 years ago

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

comment:10 by chrisclaydon, 15 years ago

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

comment:11 by chrisclaydon, 15 years ago

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

Note: See TracTickets for help on using tickets.