[Cartoweb-dev] [Bug 1733] New: Pdf export preview can not be moved
after pan
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Tue Jun 12 09:11:18 EDT 2007
http://bugzilla.maptools.org/show_bug.cgi?id=1733
Summary: Pdf export preview can not be moved after pan
Product: CartoWeb
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: Plugins
AssignedTo: cartoweb-dev at lists.maptools.org
ReportedBy: ml.dje at geocontent.de
If the pdf preview is activated after a pan operation (using the "hand" tool not
the pan buttons around the map), the pdf_overview rectangle can not be moved
anymore. This issue can easily be reproduced with the demoCW3 project:
1. Zoom into the map somewhere
2. Activate pdfrotate -> the rectangle can be moved
3. Activate the pan tool and move the map a bit
4. Activate pdfrotate again -> the rectangle can not be moved or rotated
Changing scale, paper format, etc. still work. There are no JavaScript errors.
But, if you follow the same procedure skipping step 2, the following error occurs:
dFeature has no properties
cartoweb3/js/dhtmlAPI.js (Line 1754)
Further, if the pan tool is just activated, but the map is not moved, pdfrotate
still works afterwards.
I spent several hours trying to find the reason, but was unsuccessful. There is
only one thing that I could figure out:
It seems that the pdfrotate event handlers are not reset correctly after an
operation. As long as pan has not been used, all event handlers defined in
RotateFeatureTool (dhtmlPdf.js) are called as expected. After the first pan
operation, RotateFeatureTool.prototype.onMouseUp is the only handler that is
still called.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Cartoweb-dev
mailing list