PrintMap

View: New views
5 Messages — Rating Filter:   Alert me  

PrintMap

by Kevin Edmundson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?  I would like to model the plugin after
this functionality, but I need to see it work correctly first.

 

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.edmundson@...

 

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.

 

------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
pmapper-users mailing list
pmapper-users@...
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Re: PrintMap

by Armin Burger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> 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® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
pmapper-users mailing list
pmapper-users@...
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Parent Message unknown FW: PrintMap

by Kevin Edmundson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


From: Kevin Edmundson
Sent: Tuesday, September 22, 2009 9:16 AM
To: 'Armin Burger'
Subject: RE: [pmapper-users] PrintMap


Hmmmm...ok...but how is a user to see the map image?  

Maybe I need to explain more.  It is not that the reference map is just printing, say in the upper left corner and is on top of the map image.  It is that the reference map is printing so large that you can no longer see the original map image at all.

I hope this helps explain.

Kevin

-----Original Message-----
From: Armin Burger [mailto:armin.burger@...]
Sent: Tuesday, September 22, 2009 9:11 AM
To: Kevin Edmundson; pmapper-users@...
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



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.edmundson@...

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.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
pmapper-users mailing list
pmapper-users@...
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Re: PrintMap

by Kevin Edmundson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.edmundson@...

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.burger@...]
Sent: Tuesday, September 22, 2009 9:11 AM
To: Kevin Edmundson; pmapper-users@...
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® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
pmapper-users mailing list
pmapper-users@...
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Re: PrintMap

by Thomas RAFFIN :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You're welcome

Kevin Edmundson a écrit :

> 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.edmundson@...
>
> 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.burger@...]
> Sent: Tuesday, September 22, 2009 9:11 AM
> To: Kevin Edmundson; pmapper-users@...
> 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
>
>
>  
------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
pmapper-users mailing list
pmapper-users@...
https://lists.sourceforge.net/lists/listinfo/pmapper-users