All,

Thanks to lots of help from Thomas Raffin, the issue with the overly large 
reference map using the PrintMap function has been solved.

The issue ended up being the fact that the Reference image used for the 
application was huge...over 800X600...and that is why the reference image was 
completely overwriting the map image in the printout.

There were several fixes suggested, one of which being just to resize the 
reference map image to the desired size.  That would work, but then I would 
always have to be concerned with the size of the reference map.  

The solution that I finally used was to designate, in the print.xml, the size 
that the reference image should be with the following changes to both the 
printmap.phtml and print.xml.

- in pmapper/printmap.phtml before 'header("Content-Type: text/html; 
charset=$defCharset");' add 
'$refMapW = $map->reference->width;
$refMapH = $map->reference->height;'
It will add 2 new values for height and size that we will use in the 
customizable output

Change the output in your print.xml (by default 
pmapper/config/common/print.xml) by changing
'<div id="print_map_refimage"><img src="$$printUrlList[1]" alt="refmap" 
/></div>'
by
'<div id="print_map_refimage" style="width: $$refMapW; height: $$refMapH;"><img 
src="$$printUrlList[1]" alt="refmap" /></div>'

Again, thanks to Thomas for all the help.


Kevin Edmundson
CIO
WTH Technology, Inc
567 W Westfield Blvd
Indianapolis, IN 46208
317.259.0105 office
317.259.1423 fax
317.501.8560 mobile
kevin.edmund...@wthtechnology.com

NOTICE: This message is from the technology firm WTH Technology, Inc. This 
message is intended only for the individual or entity to which it is directed. 
If you are not the addressee, or if this message has been addressed to you in 
error, you are not authorized to use, read, copy or distribute this message and 
any attachments, and we ask that you please immediately delete this message and 
attachments (including all copies), and notify the sender by return e-mail so 
that our records can be corrected. All personal messages express views only of 
the sender, which are not to be attributed to WTH Technology, Inc, and may not 
be distributed or copied without this statement.

-----Original Message-----
From: Armin Burger [mailto:armin.bur...@gmx.net] 
Sent: Tuesday, September 22, 2009 9:11 AM
To: Kevin Edmundson; pmapper-users@lists.sourceforge.net
Subject: Re: [pmapper-users] PrintMap


> I am developing a plugin for printing a single feature on the map with a
> zoomed image and a formatted list of fields to accompany.
> 
> I started to look at how PrintMap worked (to html right now) and I see
> that when I check the box to print the reference map, it prints over top
> of the entire map image.  Is there a setting that I have to set in order
> to get that to print correctly?  

this *is* correct since it is the intended behaviour... 

armin


-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to