<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I think it does refresh the legend.<br>
But not everything is refreshed, see this:<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>
The map frame has the function "GetLegendCtrl()" even though it is not
documented.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Rock Beans skrev:
<blockquote
cite="mid:1735e2ef0901081411s14949a2fy6e2da2f4d08eec94@mail.gmail.com"
type="cite">
<pre wrap="">Is there a GetLegendFrame() viewer command? There seems to be one for
everything else. I need to refresh Legend and I don't want to hard
code but if needed will do. I got the map doing what I want with
layers and scale. Then call ZoomToView with refresh = true. That
should in my mind refresh the legend tooooooo. Why does it not?
On Thu, Jan 8, 2009 at 3:48 PM, Kenneth Skovhede, GEOGRAF A/S
<a class="moz-txt-link-rfc2396E" href="mailto:ks@geograf.dk"><ks@geograf.dk></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">No, that value is only present in the client.
It would be difficult to detect the scale value if you were drawing multiple
maps,
eg. a "real" map, a print preview and an overview map.
Regards, Kenneth Skovhede, GEOGRAF A/S
Rock Beans skrev:
Thanks I got the layer control figured out now. I wish you could set
the map.viewscale= is the only thing. I would still have to do a
Javascript refresh. So this ZoomToView(x, y, scale, refresh) might be
just as good either way. Is there a way to set the scale serverside
using the map object?
Thanks!
On Thu, Jan 8, 2009 at 3:39 PM, Kenneth Skovhede, GEOGRAF A/S
<a class="moz-txt-link-rfc2396E" href="mailto:ks@geograf.dk"><ks@geograf.dk></a> wrote:
What do you mean when you say that "visible" is read only?
You can use the "getVisible()" and "setVisible()" functions to set layer
visibility.
An example here:
<a class="moz-txt-link-freetext" href="http://discussion.autodesk.com/forums/thread.jspa?threadID=629000&tstart=75">http://discussion.autodesk.com/forums/thread.jspa?threadID=629000&tstart=75</a>
The "Session:xxx//MapName.Map" is an almost empty placeholder document.
The document has a binary object attached, which is what you modify with
operations like the above.
You probably don't want to go there.
AFAIK, the map center and scale values are only stored in the client (aka:
javascript).
So you have to use the Viewer API to get/set those values.
(The DWF viewer may be different)
Regards, Kenneth Skovhede, GEOGRAF A/S
Rock Beans skrev:
I can use the API to get layer information like what is turned on and
off but I can't set visible since it is read only. It would be nice if
you could just make the changes there save and issue a javascript map
refresh. What is the best method for remembering the last location
viewed and returning to the location with a click of a button. I
really want to stay away from the viewer API if at all possible except
for the refresh of course.
I first thought I could just go layer.visible=false... no go
Then I played with Session:xxx//MapName.Map with SetResource... is
this the best route?
Any ideas?
_______________________________________________
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>
_______________________________________________
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>
_______________________________________________
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>
_______________________________________________
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=""><!---->_______________________________________________
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>
</body>
</html>