<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Mark,<BR>
<BR>
I used the following html calling the geoMOOSE method from compiled.js javascript to turn on/off layers. It falls short of determining whether the layer is on or off but simply turn on or off but there might be a way out. <BR>
<BR>
<input name="Satellite" type="submit" value="Satellite View" onClick="javascript: GeoMOOSE.turnLayerOff('place/loc_labels'); GeoMOOSE.turnLayerOff('bounds/all'); GeoMOOSE.turnLayerOn('nasawms/all'); "/><BR><BR>
<BR>
Franz<BR> <BR>
<HR id=stopSpelling>
Date: Fri, 14 May 2010 09:18:20 -0500<BR>From: MarkVolz@co.lyon.mn.us<BR>To: geomoose-users@lists.sourceforge.net<BR>Subject: [Geomoose-users] turn layers on and off through code, controlling min / max scales in the mapbook?<BR><BR>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>Hi,</FONT></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>I was wondering if there</FONT></SPAN><SPAN lang=en-us> <FONT face=Calibri>is a way to 1)</FONT></SPAN><SPAN lang=en-us> <FONT face=Calibri>determine</FONT></SPAN><SPAN lang=en-us><FONT face=Calibri> if a specific layer is on. 2) </FONT></SPAN><SPAN lang=en-us> <FONT face=Calibri>turn that layer off. 3) turn on an alternate layer.</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>Also,</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>Is there a way to control the min and max scales of</FONT></SPAN><SPAN lang=en-us> <FONT face=Calibri>wms layers</FONT></SPAN><SPAN lang=en-us> <FONT face=Calibri>in the map-source?</FONT></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>Thanks</FONT></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>Mark Volz</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>GIS Specialist</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>Lyon County, MN</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN></P>                                            <br /><hr />Get a new e-mail account with Hotmail - Free. <a href='http://clk.atdmt.com/UKM/go/197222280/direct/01/' target='_new'>Sign-up now.</a></body>
</html>