<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=windows-1250"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
You must open the map, using map.Open(...)<br>
Then use map.Layer(layername).Visible = true<br>
and finally map.Save(...)<br>
<br>
All the steps are described in detail in the developers guide.<br>
<br>
Beware that there are some bugs in MapGuide that will <br>
prevent this from working straight away:<br>
<br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/ticket/167">http://trac.osgeo.org/mapguide/ticket/167</a><br>
<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
anakando skrev:
<blockquote cite="mid:11336461.post@talk.nabble.com" type="cite">
  <pre wrap="">hi guys..

see attachment. how can i create a link to toggle selected layers from
button as show below?? so,users wiill have 2 option to toggle a layer,
either from lagend panel,or from click on a button that i create using
firework.. <a class="moz-txt-link-freetext" href="http://www.nabble.com/file/p11336461/gisweb.jpg">http://www.nabble.com/file/p11336461/gisweb.jpg</a> ??



Kori Maleski-3 wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi All,

 

I am trying to embed a legend in a separate web page.  Does anyone still
have some of the examples that were floating around last year?

 

 

Cheers,

 

  _____  


 <a class="moz-txt-link-rfc2396E" href="http://www.websoftdev.com/">&lt;http://www.websoftdev.com/&gt;</a> 

 <a class="moz-txt-link-rfc2396E" href="http://www.websoftdev.com/">&lt;http://www.websoftdev.com/&gt;</a> 

 <a class="moz-txt-link-rfc2396E" href="http://www.websoftdev.com/">&lt;http://www.websoftdev.com/&gt;</a> 

Kori Maleski

Senior Application Developer

WEBSOFT DEVELOPERS, INC.

P: (530) 759-8754 ext 114

F: (530) 759-0923

<a class="moz-txt-link-abbreviated" href="mailto:kori.maleski@websoftdev.com">kori.maleski@websoftdev.com</a>

  _____  

 

RE: Custom layouts...  <a class="moz-txt-link-rfc2396E" href="javascript:%20void%20Nabble.setFlag();">&lt;javascript:%20void%20Nabble.setFlag();&gt;</a> Click to
flag this post

by Alain Lebatard 
<a class="moz-txt-link-rfc2396E" href="http://www.nabble.com/user/UserProfile.jtp?user=321469">&lt;http://www.nabble.com/user/UserProfile.jtp?user=321469&gt;</a>
Mar 22, 2006; 09:20am :: Rate this Message:
&lt;<a class="moz-txt-link-freetext" href="http://www.nabble.com/forum/ViewPost.jtp?post=3536772&framed=y&skin=16610##">http://www.nabble.com/forum/ViewPost.jtp?post=3536772&amp;framed=y&amp;skin=16610##</a>
    </pre>
    <pre wrap="">&lt;<a class="moz-txt-link-freetext" href="http://www.nabble.com/forum/ViewPost.jtp?post=3536772&framed=y&skin=16610##">http://www.nabble.com/forum/ViewPost.jtp?post=3536772&amp;framed=y&amp;skin=16610##</a>
    </pre>
    <pre wrap="">&lt;<a class="moz-txt-link-freetext" href="http://www.nabble.com/forum/ViewPost.jtp?post=3536772&framed=y&skin=16610##">http://www.nabble.com/forum/ViewPost.jtp?post=3536772&amp;framed=y&amp;skin=16610##</a>
    </pre>
    <pre wrap="">&lt;<a class="moz-txt-link-freetext" href="http://www.nabble.com/forum/ViewPost.jtp?post=3536772&framed=y&skin=16610##">http://www.nabble.com/forum/ViewPost.jtp?post=3536772&amp;framed=y&amp;skin=16610##</a>
    </pre>
    <pre wrap="">&lt;<a class="moz-txt-link-freetext" href="http://www.nabble.com/forum/ViewPost.jtp?post=3536772&framed=y&skin=16610##">http://www.nabble.com/forum/ViewPost.jtp?post=3536772&amp;framed=y&amp;skin=16610##</a>
    </pre>
    <pre wrap="">&lt;<a class="moz-txt-link-freetext" href="http://www.nabble.com/forum/ViewPost.jtp?post=3536772&framed=y&skin=16610##">http://www.nabble.com/forum/ViewPost.jtp?post=3536772&amp;framed=y&amp;skin=16610##</a>
    </pre>
    <blockquote type="cite">
      <pre wrap="">(use ratings to moderate[? <a class="moz-txt-link-rfc2396E" href="http://www.nabble.com/help/Answer.jtp?id=16">&lt;http://www.nabble.com/help/Answer.jtp?id=16&gt;</a>
      </pre>
    </blockquote>
    <pre wrap="">])

Reply <a class="moz-txt-link-rfc2396E" href="http://www.nabble.com/forum/Reply.jtp?post=3536772">&lt;http://www.nabble.com/forum/Reply.jtp?post=3536772&gt;</a>  | Reply to
Author <a class="moz-txt-link-rfc2396E" href="http://www.nabble.com/user/SendEmail.jtp?type=pm&post=3536772">&lt;http://www.nabble.com/user/SendEmail.jtp?type=pm&amp;post=3536772&gt;</a>  |
Show Only this Message
<a class="moz-txt-link-rfc2396E" href="http://www.nabble.com/RE%3A-Custom-layouts...-p3536772s16610.html">&lt;http://www.nabble.com/RE%3A-Custom-layouts...-p3536772s16610.html&gt;</a>  |
Link
to this Message
<a class="moz-txt-link-rfc2396E" href="http://www.nabble.com/Custom-layouts...-tf1319084s16610.html#a3536772">&lt;http://www.nabble.com/Custom-layouts...-tf1319084s16610.html#a3536772&gt;</a>  

Jason,

 

I attached a couple HTML pages that show you a possible approach in
displaying the legend control in another place In this example the legend
control runs in an IFrame at the right of the viewer (see screen snapshot
below

 

This approach requires no code change in the template files. The main
issue
is that the legend control and the viewer call each other, the viewer to
set
the scale as the map is navigated, or to refresh the control among other
things, and the legend control to change the visibility of layers and
groups. When the frame hosting the control changes, the way the control
and
the viewer reference each other in the code needs to change as well. The
reference to the AJAX viewer in the legend control code was hardcoded. I
changed this and I will submit the change to the mapguide trunk shortly.
The
reference to the legend control from the AJAX viewer is hold by a variable
so all needs to be done is changing the content of this variable to point
to
the new control.

 

The sample script 'legendpane.html' shows you how to wait for the map to
be
fully initialed, create a new legend control (not the new parameter
MAPFRAME
to the LegendCtrl.php request), and when this control is fully
initialized,
sets a reference to it in the AJAX viewer. From that point on the AJAX
viewer will interact with the new control.

 

The drawback of this approach is that the initial legend control is still
there, only not visible. But it's not a big deal, the control is inactive
after you attached the new instance to the AJAX viewer. The advantage of
this approach, which to my opinion far outweighs the drawback, is that it
requires no change in the existing surround.

 


 
 
 
 
 
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>