Print system

From Ka-Map Wiki

Jump to: navigation, search
from version 1.0

Actually you can choose between GIF, JPG, PNG. PDF output with FPDF lib (no PDF server support needed) not yet implemented. GeoTiff output not yet implemented.

Print output is related to viewport but image extent correspondance in not yet perfect.


It's acting as a normal mapserver application without using ka-map caching. it would be nice to implement a system that use precached tiles.

Image width is customizable inside the application. Edit myPrint function inside startUp.js , img_width variable. Default 600 (px). I've put a $max_width value inside print_map.php to avoid server hackings (default: 1000 px).

demo here: http://www.ominiverdi.org/ka-map/ka-map/htdocs/

[edit] Troubleshooting

  1. error: "Fatal error: Call to a member function selectOutputFormat() on a non-object in /var/www/html/kamap1/htdocs/tools/print/print_map.php on line 211".
    1. solution: i met the same problem,and in config.php file,i change map path to absolute file path,print system works fine!
  2. error: "Fatal error: Call to a member function saveImage() on a non-object in /htdocs/tools/print/print_map.php on line 230"
    1. solution: ...
Personal tools