<div>Hi Dean,</div>
<div>
<div>&nbsp;</div>
<div>Thanks very much for your comment and interest.&nbsp; </div>
<div>&nbsp;</div></div>
<div>I'm CC'ing this message to the MapServer-West list since I see you're from Vancouver too, and maybe others can benefit from the hints i'm sending you.</div>
<div>&nbsp;</div>
<div>My&nbsp;website has been around for awhile but only just recently was announced to the public by the mining company. Traffic on the site went from 5 or 10 maps generated per day upto ~550 maps per day ... at least for the first couple days.&nbsp; Traffic is back down to normal now hehe.
</div>
<div>&nbsp;</div>
<div>I'll send some code to you hopefully tonight, if not than in the next couple days (I'm at my day job right now, and might be going away this weekend).</div>
<div>&nbsp;</div>
<div>My website uses frames to help reduce one of the things that holds MapServer back ...&nbsp;on many sites you have to reload the full page instead of just the map when you zoom or pan.&nbsp; In using frames, the website has to&nbsp;pass the URL of the map frame around a lot.&nbsp; For example, the Layer control frame reads the URL of the map frame and adds / subtracts the names of layers to be turned on and off to the URL (and other details, like which element to display if the soil sample layer is on), and then redirects the map frame to the newly modified URL.&nbsp; Javascript and ASP work great for this, especially for turning groups of layers on/off at the same time.
</div>
<div>&nbsp;</div>
<div>The Print page is similar, when you hit the print button, it opens the new window, and uses the URL of the map frame to setup the print page&nbsp;(modifying the HTML template to use the print template you see).</div>
<div>&nbsp;</div>
<div>The print page is just a normal html template, with a [legend] cgi parameter near the bottom, using a legend template that lays it out the way you've seen.&nbsp; I've been meaning to add a way to turn off the legend, say for if you're printing a few maps that are side by side that have the same legend.
</div>
<div><br>Two&nbsp;things to beware of:&nbsp;</div>
<div>&nbsp;</div>
<div>- The map resolution is only 72dpi. It doesnt look as nice on paper as it does on the screen.&nbsp; I've heard there may be a new way to use the RESOLUTION parameter that may help with this, haven't looked into this yet.
</div>
<div>&nbsp;</div>
<div>-&nbsp; The scale of the map on paper is related to the 'dot pitch' of the monitor each user has ... the spacing of the pixels on the user's screen.&nbsp; I've used some javascript to&nbsp;adjust how the scale is listed on the&nbsp;printout using a 'typical' dot pitch value. Over time people will acquire better monitors with smaller dot pitches and for them, the scale will be less accurate ... to cover for these uncontrollable things, be sure to include a scale bar in your printout, even if the numerical scale is wrong, your users can always use the scale bar to measure distances properly.
<br>&nbsp;</div>
<div>Cheers,<br>Ken</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 7/27/05, <b class="gmail_sendername">Dean C. Mikkelsen</b> &lt;<a href="mailto:dcmikkelsen@shaw.ca">dcmikkelsen@shaw.ca</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><font face="Arial" color="#0000ff" size="2"><span>Hi Ken,</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span>You've done some pretty amazing stuff with MapServer. I'm still learning.</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span>I looked at the mining company site you developed. I really liked the printing option to print the map and the legend information.</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span>I was wondering if I may take a look at the code, as I would like to do something similar with a project I am working on and it looks like it would resolve a lot of my problems.
</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span>I look forward to hearing from you.</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span>Kind regards,</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span>Dean</span></font></div><span class="sg">
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span>Dean C. Mikkelsen, B.Sc., P.Eng.</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span>Phone: 604-929-8630</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span>E-mail: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dcmikkelsen@shaw.ca" target="_blank">dcmikkelsen@shaw.ca</a></span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div></div>
<div lang="en-us" dir="ltr" align="left"><br>&nbsp;</div></blockquote></span></blockquote></div><br><br clear="all">