<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
No, that value is only present in the client.<br>
<br>
It would be difficult to detect the scale value if you were drawing
multiple maps,<br>
eg. a "real" map, a print preview and an overview map.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Rock Beans skrev:
<blockquote
cite="mid:1735e2ef0901081345w1d78050m9037c1d706fce9ad@mail.gmail.com"
type="cite">
<pre wrap="">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:
</pre>
<blockquote type="cite">
<pre wrap="">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:
</pre>
<blockquote type="cite">
<pre wrap="">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>
</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>
<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>