<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hey, could someone please suggest an
answer to this question?<br>
<br>
The maps DO NOT display unless I pass a img.x and img.y, or just click on the
map (same thing).&nbsp; And, passing an img.x and img.y of 400 does not do anything
either &#8211; I guess because mapserver doesn&#8217;t have to recalculate the
img ext based on where you clicked on the map. Something is going wrong!&nbsp;
Please help, or give suggestions.&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-Scott<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> UMN MapServer
Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <b><span style='font-weight:
bold'>On Behalf Of </span></b><st1:PersonName w:st="on">Scott Schulthess</st1:PersonName><br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, March 01, 2007
4:39 PM<br>
<b><span style='font-weight:bold'>To:</span></b> MAPSERVER-USERS@LISTS.UMN.EDU<br>
<b><span style='font-weight:bold'>Subject:</span></b> [UMN_MAPSERVER-USERS]
Images only display when map clicked on, or img.x/img.y parameters included in
query string</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hey Ya&#8217;ll &#8211; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>For some reason, my little mapserver viewer isn&#8217;t
working.&nbsp; I was messing around with the javascript and trying to view
different sections of the <st1:place w:st="on"><st1:country-region w:st="on">U.S.</st1:country-region></st1:place>
when I finally got it to work.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>But, here&#8217;s the kicker, the only difference in the
query strings is two paramters &#8211; img.x and img.y<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>This query string <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><a
href="http://strabo11/cgi-bin/mapserv?mode=browse&amp;zoom=1&amp;blocktable=17064&amp;layer=polyshape&amp;serieslist=a&amp;map=%2Fdata3%2FDMSolutions%2Fglobal-1.0%2Fmap%2Ftest20.map&amp;layers=DRG60+polyshape&amp;imgext=-65.000000+17.000000+-64.000000+18.000000&amp;imgxy=400+400&amp;map_web_template=.%2Ftest-viewer-template.html&amp;map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2Fms_tmp%2F&amp;map_web_imageurl=%2Fms_tmp%2F&amp;mapsize=800+800&amp;theindex=%2Fdata3%2FDRGPalFixClipped250%2F17064%2Fa17064.shp&amp;block=17064&amp;selectdex=%5Bselectdex%5D&amp;selectedlayer=%255">http://strabo11/cgi-bin/mapserv?mode=browse&amp;zoom=1&amp;blocktable=17064&amp;layer=polyshape&amp;serieslist=a&amp;map=%2Fdata3%2FDMSolutions%2Fglobal-1.0%2Fmap%2Ftest20.map&amp;layers=DRG60+polyshape&amp;imgext=-65.000000+17.000000+-64.000000+18.000000&amp;imgxy=400+400&amp;map_web_template=.%2Ftest-viewer-template.html&amp;map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2Fms_tmp%2F&amp;map_web_imageurl=%2Fms_tmp%2F&amp;mapsize=800+800&amp;theindex=%2Fdata3%2FDRGPalFixClipped250%2F17064%2Fa17064.shp&amp;block=17064&amp;selectdex=%5Bselectdex%5D&amp;selectedlayer=%5Bselectedlayer%5D&amp;layerindex=1&amp;gpxid=%5Bgpxid</a><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Doesn&#8217;t work <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>When I add in img.x and img.y <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><a
href="http://strabo11/cgi-bin/mapserv?img.x=311&amp;img.y=229&amp;mode=browse&amp;zoom=1&amp;blocktable=17064&amp;layer=polyshape&amp;serieslist=a&amp;map=%2Fdata3%2FDMSolutions%2Fglobal-1.0%2Fmap%2Ftest20.map&amp;layers=DRG60+polyshape&amp;imgext=-65.000000+17.000000+-64.000000+18.000000&amp;imgxy=400+400&amp;map_web_template=.%2Ftest-viewer-template.html&amp;map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2Fms_tmp%2F&amp;map_web_imageurl=%2Fms_tmp%2F&amp;mapsize=800+800&amp;theindex=%2Fdata3%2FDRGPalFixClipped250%2F17064%2Fa17064.shp&amp;block=17064&amp;selectdex=%5Bselectdex">http://strabo11/cgi-bin/mapserv?img.x=311&amp;img.y=229&amp;mode=browse&amp;zoom=1&amp;blocktable=17064&amp;layer=polyshape&amp;serieslist=a&amp;map=%2Fdata3%2FDMSolutions%2Fglobal-1.0%2Fmap%2Ftest20.map&amp;layers=DRG60+polyshape&amp;imgext=-65.000000+17.000000+-64.000000+18.000000&amp;imgxy=400+400&amp;map_web_template=.%2Ftest-viewer-template.html&amp;map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2Fms_tmp%2F&amp;map_web_imageurl=%2Fms_tmp%2F&amp;mapsize=800+800&amp;theindex=%2Fdata3%2FDRGPalFixClipped250%2F17064%2Fa17064.shp&amp;block=17064&amp;selectdex=%5Bselectdex%5D&amp;selectedlayer=%5Bselectedlayer%5D&amp;layerindex=1&amp;gpxid=%5Bgpxid</a><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>It works fine. I did a view source and saved the templates,
the img ext changes, but changing it without adding in img.x and img.y
doesn&#8217;t make the maps appear, and it&#8217;s neglibible difference
anyways.&nbsp; Also, the SRC of the map images changes to some other temp file
generated by mapserver.&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Help?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>-Scott<o:p></o:p></span></font></p>

</div>

</body>

</html>