<!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">
You will have to create a copy of the WebLayout, then alter the initial
zoom in the WebLayout.<br>
Next step is to save the WebLayout in the session repository, and point
the mapviewer to this new temporary WebLayout.<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Ismael Cams skrev:
<blockquote cite="mid:13604926.post@talk.nabble.com" type="cite">
<pre wrap="">You could make add another "hidden" frame to your frameset. Pass the incoming
parameters to the hidden frame and perform zoom and selection actions in
this hidden frame.
Something like:
<frameset rows="0,100,*" frameborder="NO" border="0" framespacing="0">
        <?php
                        if(isset($params)){
                                echo "<frame src=\"hidden.php?$params\" name=\"hidden\"/>";
                        }else{
                                echo "<frame src=\"hidden.php\" name=\"hidden\"/>";
                        }
?>
<frame ... />
<frame ... />
</frameset>
You will also have to check first in the hidden page if the map is already
initiated before selecting and zooming. There are some examples on the forum
how to achieve this.
Mark Pendergraft wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I'm trying to figure out how to open my map and have it automatically
zoom to a feature by including a request querystring in the url.
For example <a class="moz-txt-link-freetext" href="http://localhost/mapguide/mga/mga.aspx?JobNo=04291">http://localhost/mapguide/mga/mga.aspx?JobNo=04291</a> would
zoom to the feature on the Jobs layer with a property of JobNo equaling
04291.
I have already written a search/zoom to application which uses this
property. It runs in the scriptFrame and is usually triggered from a
button on a page that resides in the taskPane.
My application opens with a page, which creates 2 frames (titleFrame,
viewerFrame).
The only way I can figure out how to do this, is to pass the request
string to a Session.Item. Then, I have some code in the task pane's
default page which can submit a form using javascript to the
scriptframe.
However, I was hoping to put all of this functionality into the opening
page, that way I wouldn't have to pass variables using the session item.
Which is more desirable, because if the user presses the home button in
the task area the code would execute again.
Does anyone have any ideas or experience with making the map zoom to a
feature upon being opened? Thanks.
Ph: (425) 486-1252 Fx: (425) 486-6108 <a class="moz-txt-link-abbreviated" href="http://www.meadgilman.com">www.meadgilman.com</a>
<a class="moz-txt-link-rfc2396E" href="http://www.meadgilman.com/"><http://www.meadgilman.com/></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=""><!---->
</pre>
</blockquote>
</body>
</html>