Skip to content

Print FeatureInfo pdf #85

@dpakprajul

Description

@dpakprajul

Note: Tried to solve the merge conflict and mistakely clicked on refresh button in vs code, leading to the changes which I didn't want. I reverted it but it looked somehow messy. And hence a new remote branch clean_printfeatureinfo is created instead of 85_printfeatureinfo. Further work will be continued in the branch clean_printfeatureinfo.

  • 1) Remove the title from the pdf
  • 2) Remove/maintain the red box
  • 4) Solve the issue of printing only one table.
  • 5) Solve the issue of not printing any tables even the table is present in the featureInfo.
  • 6) Adjust the scaling in the pdf
  • 7) Work with translation
  • The legend is not seen, as the color is not selected and default is white and couldn't be seen in background white.
  • Move the print form to the left so that map wouldn't be hindered.
  • Add the title, scale and Notice also in the printFeatureInfo and make it functional
  • When Drucken is clicked in the MapFeatureInfo, the red circle in the mapviewer disappeared. It should show the box instead
  • issue: highlightPrintBox: forbid second click in map.
  • Also make the change of the position of the map when zoomed in and zoomed out.
  • change the featureInfoPrintDialog to Hintergrundkarte für abgefragte Ebene and second header to Abzufragende Ebene.
  • Make FeatureInfoLayer for Flurstücke "hardcoded" url. ----- I have my view that it should take from the layer tree instead, and why to show the layer which is not in the tree and compelled the user to download the unnecessary layers.
  • Provide Legend for Flurstücke
  • Add a center point with a circle. (The red rectangular area which will be printed) opening the another form to choose the background image and so on. The print form is moved to the left so that in future the red rectangular box could be seen without any hinderance.
  • Remove the parent url while showing in featureInfo box and also remove from the printing featureInfo pdf. When all the sublayers are checked, the parent is checked automatically and its url is also included (added) in the printing pdf function, making the url separated by comma and double question mark in one url. Hence in php, write script to remove the parent url.
  • Improve the progress bar. Give user the information and the progress bar so that they can wait and see the progress until the pdf are downloaded.
  • When the pdf printing is failed, the dialog box is still there. The alert shows the same message of timeout error even though there is server error (error in url). The ajaxForm should get the response error (callback) and give the message to the user accordingly.
  • The error message should be precise. The timeout should be increase if there are multiple layers. For example if there are 100 sublayers, there will be timeout for sure, as only 10 seconds is not enough for getting the map, legends and make a pdf out of it. So the timeout should be for the individual layers, and showing the details (about the layers which takes a lot more time to load) to the users.
  • Make the rendering more details (like the wms maps, legends, featureInfo)-- all the information should be shown in the progress bar as it progresses.
  • Try to change the alert message to the message in the dialog box.
  • Remove the grey part while downloading as this is hindering the status of the progress bar.
  • Add the css to the normal Werkzeug/Drucken as in FeatureInfo Drucken.
  • In the abzufragende ebenen, the layer for printing the featureInfo is selected with some title. But in the getmap (in the pdf), the layer map got all the layers from that service. For example: BORIS2024-Info is selected and its featureInfo available, its showing BORIS2024-Zonen, halbtransparent in the pdf too. It should only take which is asked and has featureInfo.
  • When both the layer (same image (layer) at the same zoom level (eg: 1:5953) for the https://test.geoportal.hessen.de/map?WMC=537 and are both (child of Bewirtschaftungsgebiete Hessen) active, the image from the request is not showing in the pdf. In some other zoom level, it is working as expected: in page 1 and layer page the map is showing, but at some specific zoom level the map is not showing although the featureInfo is showing. here is the example pdf. map_3a6f40a.pdf

What's new in the new update:

  1. New north arrow (cc-0) is used with transparent background and made the rotation in normal print functional.
  2. Checkbox introduced to include the Legend so that its corresponding legend will be displayed in the side of the layer (map).
  3. Fixed some bugs: if one layer is out of bbox, the whole layers becomes problematic and the featureInfo is not displayed properly. Some improvement: The title of the layer introduced in the Legend and FeatureInfo page.
  4. An info button introduced to show the image differentiating HTML and Text.
  5. CSS in the normal print is introduced to make similar to the printFeatureInfo
  6. Graphical scale bar introduced.
  7. EPSG added for the selected coordinate system

What next:

  • Make the normal print like PrintFeatureInfo. The highlight should be shown which shows which part will be printed. The panning and zooming should work.
  • Introduce the feature: progressbar in the normal print function.
  • ok and print button in the printFeatureInfo has different highlighting. As suggested by Susa and Philipp, just make both same visually. Suggestion from Karl: just remove the Ok button.
  • One complain: When the user prints the print button, the progressbar and downloadable link are just above the print and ok button. They find it difficult that where it got downloaded as they didn't see the newly created link. In DigiFlurFunk we talked about it and one of the colleague asked if the link could be added to the buttom instead of above of the print and ok button. I tried it on the normal print function but it looks bit ugly: my perspective.
  • The coordinates are too much rounded in the EPSG: 4326 while printing the pdf. So it needs to be some decimal value (In German format: comma).
Image Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions