Hi all,<div><br></div><div>Thanks to those who've emailed me off-list with answers to my prior questions.  We've moved on to new problems!  I've got the demo working, and I can add data and customize the skin and whatnot to my heart's content.  However, this is the demo.  When I try to move things to upstate New York and into a new projection, interesting things happen.  I can get my new data to show up in the Catalog with unbroken linkages.  The mapfile for my data doesn't report any problems (I have debugging turned on).  Yet I get the PSOD anyway.  GeoMoose zooms to the appropriate extents, the original demo data displays just fine-- just the data I'm trying to add in NY does the PSOD-- even though the Catalog link says the data is there, AND I am mostly sure that I have the projections correct.</div>

<div><br></div><div>And here's the wrinkle: Firebug is showing this error when I refresh the browser:</div><div><br></div><div><div><font face="courier new, monospace">TypeError: Application.getMapSource(layerPath) is undefined</font></div>

</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><font face="courier new, monospace">Application.getMapSource(layerPath).setVisibility(layerPath, visibility)</font>;</div></div><div><br></div>

</blockquote>Here's the appropriate codeblock:<div><br></div><div><p class="MsoNormal"><span style="font-family:'Courier New'">changeLayerVisibility
: function(layerPaths, visibility) { </span></p>

<p class="MsoNormal" style="text-indent:.5in"><span style="font-family:'Courier New'">var paths = this.asArray(layerPaths); </span></p>

<p class="MsoNormal" style="text-indent:.5in"><span style="font-family:'Courier New'">for(var i = 0, len = paths.length; i < len; i++)
{ </span></p>

<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in"><span style="font-family:'Courier New'">var layerPath = paths[i]; </span></p>

<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in"><span style="font-family:'Courier New'">if(layerPath) { </span></p>

<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:'Courier New'">Application.getMapSource(layerPath).setVisibility(layerPath,
visibility);</span></p>

<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:'Courier New'">}<font size="3"></font></span></p><div><div>So if layerPath is undefined, it's because it can't find or can't list all the available layers, which I suppose could produce a PSOD, but I'm waaaayyyy to new at this to really even speculate and my GeoMoose forays have not (yet) included reading through the core code.  I can do some Javascript, but I'm still too busy kicking the rust off it.  So, folks, what might be going on?  Use small words, because I'm slow.</div>

<div><br></div><div>And cheers to the developers for writing code clean enough that even a neophyte like me can read through it.</div><div><br></div><div>Thanks!</div><div><br></div><div>Best,</div><div>Jason</div>----<br>

Jason Menard<br><a href="mailto:menard.jason@gmail.com">menard.jason@gmail.com</a><br>
</div></div>