Opened 16 years ago

Closed 13 years ago

#455 closed defect (fixed)

Dynamic print frame

Reported by: christoph Owned by: christoph
Priority: major Milestone: 2.7.3 release
Component: print Version: 2.7
Keywords: Cc: mschulz, astrid_emde, armin11, huebi

Description

The printable extent should be displayed in the map as an individual frame (currently, the map size is adjusted to represent the print size).

The print frame shall have the following properties

  • movable via drag and drop
  • rotatable via mouse and form element (angle)
  • resizable via mouse and form element (scale)

A prototype has been created. A demo will follow shortly.

Open issues

  • rotated north arrow
  • rotated map extent has to be highlighted in overview in PDF
  • scale in PDF is not correct (scale of map is used, not of frame)
  • php5-imagick installation on demo server
  • sandclock during PDF generation
  • button for print frame if print dialogue is in iframe (not in popup)
  • transparency display in IE

Attachments (2)

pdf.jpg (102.4 KB ) - added by marcjansen 16 years ago.
distorted pdf
settings.jpg (129.3 KB ) - added by marcjansen 16 years ago.
settings for distorted pdf

Download all attachments as: .zip

Change History (53)

comment:1 by christoph, 16 years ago

Done

  • rotated map extent has to be highlighted in overview in PDF
  • scale in PDF is not correct (scale of map is used, not of frame)
  • php5-imagick installation on demo server

Open issues

  • rotated north arrow (is included, but transparency issue)
  • sandclock during PDF generation
  • button for print frame if print dialogue is in iframe (not in popup)
  • transparency display in IE (could be a wzGraphics thing? I'm using Filter:Alpha(Opacity=50))

comment:3 by saith, 16 years ago

Priority: majorminor

If possible, annotations should be rotated, too.

comment:4 by saith, 16 years ago

Priority: minormajor

by marcjansen, 16 years ago

Attachment: pdf.jpg added

distorted pdf

by marcjansen, 16 years ago

Attachment: settings.jpg added

settings for distorted pdf

comment:5 by marcjansen, 16 years ago

settings.jpg shows settings that result in an incorrect pdf (pdf.jpg). Am I to early in testing?

comment:6 by astrid_emde, 16 years ago

saith wrote: If possible, annotations should be rotated, too.

  • This is an issue the WMS has to handle
  • a solution could be - the rotation value is added to the MapRequest -> the WMS adds the rotation to the angle of the text, so that the text rotates too

comment:7 by astrid_emde, 16 years ago

Open issues

  • i18n: add translation for angle
  • north arrow with transparent background

Bugs

  • afm does not work on windows - we need to choose a different afm

comment:8 by astrid_emde, 16 years ago

Bug

  • rotate by mouse: sometimes the rotation by mouse does produce the following error (at the moment I can't reproduce at what situation it accurs)

Fehlermeldung mod_printPDF.php Zeile 49

48 if (typeof(obj.angle) == "number") {
49 document.form1.angle.value = obj.angle;
50 }

document is null
[Break on this error] document.form1.angle.value = obj.angle;

  • the red cicle sometimes disappears (at the moment I can't reproduce at what situation it accurs)

comment:9 by astrid_emde, 16 years ago

Cc: astrid_emde added
Owner: changed from user to christoph

comment:10 by astrid_emde, 16 years ago

Cc: armin11 added

in reply to:  8 comment:11 by mschulz, 16 years ago

Astrid, I realized the same thing, it seemed to me that the red circle disappears when there is not enough space on the map, i.e. you have to zoom out and then it showed up again in my case.

comment:12 by astrid_emde, 16 years ago

Bug

  • when you open the print and change only the orientation to landscape the mapframe and all the other elements are not positioned in the right way in the pdf

You can see the bug in the demo:

comment:13 by astrid_emde, 16 years ago

  • add print.css as element_var
INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('gui1', 'printPDF_dynamic', 'cssfileprintDynamic', '../css/print.css', '' ,'file/css');

comment:14 by astrid_emde, 16 years ago

Enhancement:

  • choose change path: mod_printPDP.php (to make it easier to run print in /print_dynamic_mypath

line 35

	include (dirname(__FILE__)."/".$_REQUEST["conf"]);

line 378

 <form name="form1" method="post" action="mod_printPDF_pdf.php?<?php echo SID; ?>" target="_blank">

comment:15 by astrid_emde, 16 years ago

Bugs Internet Explorer

  • frame is not transparent
  • wrong scale in textfield and rectangle does not show up
    • when you zoom into the map (1:500) and then hit the print button the rectangle does not show up (we have 1:1000 defined as scale)
  • in addition the field scale in the print module is set to 0

comment:16 by astrid_emde, 16 years ago

Enhancements

  • show tooltips or static information textes at the print rectangle and rotation circle

comment:17 by astrid_emde, 16 years ago

Bug highquality print

comment:18 by astrid_emde, 16 years ago

Bug

  • lot of northarrows come together in the tmp directory. They should be deleted after integration into the pdf (imagedestroy($image); )

in reply to:  16 comment:19 by christoph, 16 years ago

Replying to astrid_emde:

Enhancements

  • show tooltips or static information textes at the print rectangle and rotation circle

this is not possible. We use the mouse cursor to indicate the user can interact with these items

in reply to:  18 comment:20 by christoph, 16 years ago

Replying to astrid_emde:

Bug

  • lot of northarrows come together in the tmp directory. They should be deleted after integration into the pdf (imagedestroy($image); )

I disagree, that's what the tmp dir is for. You can also cache the north arrow this way and avoid server load

in reply to:  14 comment:21 by christoph, 16 years ago

Replying to astrid_emde:

Enhancement:

  • choose change path: mod_printPDP.php (to make it easier to run print in /print_dynamic_mypath

line 35

	include (dirname(__FILE__)."/".$_REQUEST["conf"]);

line 378

 <form name="form1" method="post" action="mod_printPDF_pdf.php?<?php echo SID; ?>" target="_blank">

done

in reply to:  12 comment:22 by christoph, 16 years ago

Replying to astrid_emde:

Bug

  • when you open the print and change only the orientation to landscape the mapframe and all the other elements are not positioned in the right way in the pdf

You can see the bug in the demo:

this is what marc already mentioned in his comment. please avoid redundancy.

bug is fixed

in reply to:  7 comment:23 by christoph, 16 years ago

Replying to astrid_emde:

Open issues

  • i18n: add translation for angle

already exists in printPDF_b.conf line 85-86

comment:24 by astrid_emde, 16 years ago

Priority: majorminor

Enhancement

  • at the moment the rectangle is refreshed onchange of the textfields angle and scale
  • the user has to click somewhere else in the printwindow to fire the event. this is not nice. If you don't know this behaviour you wonder why the printframe is not refreshed after change of the text

suggestion for a solution

  • immediate refresh of the printframe after change of the text
  • keep the onchange like it is now but add a button refresh in the printwindow to refresh the printframe

comment:25 by astrid_emde, 16 years ago

Bug highquality print

  • bug is fixed $mapFactor added

comment:26 by astrid_emde, 16 years ago

Bug Northarrowsize

  • when you reduce the size of the north arrow this has no result on the northarrow size in the pdf

see printPDF_b.conf

 * $northarrowImage_width = 8;  #15
 * $northarrowImage_height = 17; #35

comment:27 by astrid_emde, 16 years ago

Performace

  • highquality print is rather slow. we should have a look whether we can enhance the performance somehow

comment:28 by astrid_emde, 16 years ago

Cc: nimix added

Bug Internet Explorer (noticed with IE 7)

  • I open the print-window, the printframe appears, pdf-print works fine
  • when I close the print-window and open it again, the printframe is not shown and the scale is set to 1:0. When I change the scale to something reasonable the printframe is still not visible

comment:29 by nimix, 15 years ago

  • Opening the print-window a second time in IE should work now (including scale problem)
  • The Box opacity should apply also in IE

comment:30 by astrid_emde, 15 years ago

Cc: mschulz added
  • Michael Schulz (mschulz) is merging printdynamic and print with pdf template
  • mschulz - I added you to the cc list

Enhancement

  • when the printframe does not appear, because the size is to small or too big, it would be nice to show a message

in reply to:  30 comment:31 by mschulz, 15 years ago

Replying to astrid_emde: The problem of a not-fitting printframe only arises when starting with a fixed scale. In out last discussion we decided to adjust the size of the printframe relative to the mapframes scale. This assures that the printfraem will always fit into the mapframe (better mapdiv).

comment:32 by astrid_emde, 14 years ago

Bugs

  • 1. when the printframe is displayed and you use pan to navigate and then you want to move the printframe it sticks to your mouse and you can't position it
  • 2. when you use textfields like angle and scale in the template and you change the value in the field (like angle 90) and then you hit return you would expect that the angle of the printframe would change. Instead the print process is started and you get the pdf. That is not what the user wants

comment:33 by astrid_emde, 14 years ago

  • 3. is the angle of the frame correct?
  • 4. only one print frame shoul show up
  • 5. does the module work with IE?

comment:34 by astrid_emde, 14 years ago

  • 2. fixed: in mb_print.php - keyevents are handled for inut fields

comment:35 by christoph, 14 years ago

Open Issue: wz_jsgraphics is not working in IE8. Maybe a zIndex issue.

comment:36 by christoph, 14 years ago

Milestone: 2.7 release2.8 release

comment:37 by astrid_emde, 14 years ago

Cc: nimix removed

FIXED

  • js-configurations are displayed in IE

Open Issue

  • the print frame is not displayed on klick on the image -> wz_jsgraphics is not working in IE8. Maybe a zIndex issue. zIndex is set to 1000

comment:38 by astrid_emde, 14 years ago

Open Issue

  • the print frame is not displayed on klick on the image -> wz_jsgraphics is not working in IE8. Maybe a zIndex issue. zIndex is set to 1000
  • write date / time in pdf output
  • event handling navigation map / move printframe
  • draw print frame with raphaelJS instead of wzgraphics
  • export sketches to output (like in the old print module)

comment:39 by astrid_emde, 14 years ago

Milestone: 2.7.1 releasefuture
  • in IE8 the print frame is displayed

Open Issues are postponed to next minor release

comment:40 by astrid_emde, 14 years ago

Milestone: future2.7.1 release
Version: 2.7

Done

  • write date / time in pdf output
  • export sketches to output (like in the old print module) - sketches done with the module measure are exported to the prnt output

Open Issue

  • the print frame is not displayed on klick on the image -> wz_jsgraphics is not working in IE8. Maybe a zIndex issue. zIndex is set to 1000
  • event handling navigation map / move printframe
  • draw print frame with raphaelJS instead of wzgraphics

comment:41 by astrid_emde, 14 years ago

ToDo

  • koordinates without spaces - change in print/classes/mbMapDecorator.php

comment:42 by huebi, 14 years ago

Cc: huebi added

Done

  • add template for print in A2-landscape
  • add northarrow_simple.png

comment:43 by huebi, 14 years ago

Done

  • add template for print in A1-landscape
  • add template for print in A2-landscape

comment:44 by huebi, 14 years ago

Priority: minormajor
Type: feature requestdefect

Open Issue

  • in the high-qualitiy-print-mode the overview map is not displayed in high quality mode in the pdf document

comment:45 by astrid_emde, 14 years ago

Open Issue

  • draw print frame with raphaelJS instead of wzgraphics
  • export sketches to output (like in the old print module)
  • the print frame is not displayed on klick on the image -> wz_jsgraphics is not working in IE8. Maybe a zIndex issue. zIndex is set to 1000
  • event handling navigation map / move printframe
  • if you change the scale in the textfield 1 is changed to 0 so you can't write maybe 1000 it always ends up to 0000
  • if a print takes too long and the result is not given back, you can't abort the printing
  • big prints can take some minutes, in this time it is difficult to continue the work in mapbender as the printframe is in the way
  • when the printframe is too big it disappears (maybe a big frame can be better displayed with raphaelJS)
  • (draw print frame with raphaelJS instead of wzgraphics )

comment:46 by astrid_emde, 14 years ago

Open Issue

  • draw print frame with raphaelJS instead of wzgraphics
  • export sketches to output (like in the old print module)
  • the print frame is not displayed on klick on the image -> wz_jsgraphics is not working in IE8. Maybe a zIndex issue. zIndex is set to 1000
  • event handling navigation map / move printframe
  • if you change the scale in the textfield 1 is changed to 0 so you can't write maybe 1000 it always ends up to 0000
  • if a print takes too long and the result is not given back, you can't abort the printing
  • big prints can take some minutes, in this time it is difficult to continue the work in mapbender as the printframe is in the way
  • when the printframe is too big it disappears (maybe a big frame can be better displayed with raphaelJS)
  • (draw print frame with raphaelJS instead of wzgraphics )
  • temporary files have to be deleted after creation (has been unlink true in the old print module)

comment:47 by verenadiewald, 14 years ago

Milestone: 2.7.1 release2.7.2 release

comment:48 by astrid_emde, 14 years ago

opened single tickets for the bugs/enhancement.

have a look at:

comment:49 by astrid_emde, 13 years ago

Milestone: 2.7.2 release2.7.3 release

comment:50 by verenadiewald, 13 years ago

wz_jsgraphics now works in IE 8 after updating version to 3.05

comment:51 by verenadiewald, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.