<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

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

<div class=Section1>

<p class=MsoNormal>Hello everyone. My apologies if this has been solved
already, but I&#8217;ve read through the previous posts on this topic and haven&#8217;t
found a solution that works for me. <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I&#8217;m trying to replace the default reference map image
and extent on the fly, using Javascript in my template file. Basically, I want
to check if the map is zooming out past a certain scale and/or leaving the area
covered by the default reference map, and display a reference map of the entire
state (the default is the local metro area). <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I&#8217;m using the 5.2.0 version of mapserv that comes with
ms4w 2.2.7 (although ms4w&#8217;s default index page claims it&#8217;s still
2.2.6 with mapserv 5.0). From what I&#8217;ve read in the docs and mailing list
archives, I should be able to do what I want in one of two ways:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>-Include in the url: &nbsp;&nbsp;&nbsp;map_reference_image=&#8217;/images/mnref.gif&#8217;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>-Or alternatively:&nbsp; &nbsp;&nbsp;&nbsp;map_reference=IMAGE+&#8217;/images/mnref.gif&#8217;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>The first method gives me this error:<o:p></o:p></p>

<p class=MsoNormal>loadReferenceMap(): Unknown identifier. Parsing error near
(/images/mnref.gif):(line 1)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>And the second method gives me this:<o:p></o:p></p>

<p class=MsoNormal>loadReferenceMap(): Unknown identifier. Parsing error near
(IMAGE):(line 1)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I&#8217;ve tried these with every combination of quotes,
escaped quotes, no quotes, etc, without luck. What I CAN do is turn the
reference map on and off with map_reference=STATUS+off in the url, but that
seems to be the only reference object parameter that I can change. <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>According to what I&#8217;ve read I&#8217;m pretty sure this
is possible, there was even a code update to make the first method work in an
earlier version. Hopefully I&#8217;m just missing something obvious and someone
can&nbsp; point out my newb mistake. <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Thanks!<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><b>Gabe Emerson<o:p></o:p></b></p>

<p class=MsoNormal>Research Department<o:p></o:p></p>

<p class=MsoNormal>Welsh Companies<o:p></o:p></p>

<p class=MsoNormal>4350 Baker Road, Suite 400<o:p></o:p></p>

<p class=MsoNormal>Minnetonka, MN 55343-8695<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>952-897-7700, ext. 1306<o:p></o:p></p>

<p class=MsoNormal>gemerson@welshco.com<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>