<!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">
Please have a look at the Maestro code:<br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs#L1895">http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs#L1895</a><br>
<br>
It shows how to read the extent of data, as well as how to set it.<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:ravinder.singh@BIRLASOFT.COM">ravinder.singh@BIRLASOFT.COM</a> skrev:
<blockquote
 cite="mid:176511108BBB7842992F0BF7B56EB6180661853D@INNOIDA.BIRLASOFT.COM"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Book Antiqua";
        panose-1:2 4 6 2 5 3 5 3 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Book Antiqua";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Book Antiqua";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Book Antiqua";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  </o:SmartTagType>
  <div class="Section1">
  <p class="MsoNormal"><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Hi,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Although it
solved out my
problem of setting the initial map View at Design time in maestro.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Now I have
written the code
to set the layer of map dynamically by using maestro api, the map is
showing
correct layer in viewer. Now I want to set the Initial Map View (Lower
Left and
Upper Right (XY Coordinates)) at run time by fetching the extents of
the layer.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Please assist&#8230;<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="blue" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: blue;"><o:p>&nbsp;</o:p></span></font></p>
  <div>
  <p class="MsoNormal"><b><font color="gray" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: gray; font-weight: bold;">Thanks<o:p></o:p></span></font></b></p>
  <p class="MsoNormal"><font color="gray" face="Times New Roman"
 size="2"><span style="font-size: 11pt; color: gray;">Ravinder <o:p></o:p></span></font></p>
  </div>
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
 color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] <b><span
 style="font-weight: bold;">On Behalf Of </span></b><a class="moz-txt-link-abbreviated" href="mailto:ravinder.singh@BIRLASOFT.COM">ravinder.singh@BIRLASOFT.COM</a><br>
  <b><span style="font-weight: bold;">Sent:</span></b> Tuesday,
February 17, 2009
4:19 PM<br>
  <b><span style="font-weight: bold;">To:</span></b>
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
  <b><span style="font-weight: bold;">Subject:</span></b> RE:
[mapguide-users]
Regarding How to set the Initial Map View</span></font><font
 color="black"><span style="color: windowtext;"><o:p></o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">Hi
  </span></font><font color="black" size="2"><span
 style="font-size: 10pt; color: windowtext;">Kenneth,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="2"><span style="font-size: 10pt; color: windowtext;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="2"><span style="font-size: 10pt; color: windowtext;">Yes it
solved out my problem.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="2"><span style="font-size: 10pt; color: windowtext;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="2"><span style="font-size: 10pt; color: windowtext;">Thanks<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: windowtext;">Regards,<o:p></o:p></span></font></p>
  <div>
  <p class="MsoNormal"><st1:place w:st="on"><font color="black"
 face="Times New Roman" size="2"><span
 style="font-size: 11pt; color: windowtext;">R</span></font><font
 color="blue" size="2"><span style="font-size: 11pt; color: blue;">av</span></font><font
 color="black" size="2"><span
 style="font-size: 11pt; color: windowtext;">i</span></font></st1:place><font
 color="blue" size="2"><span style="font-size: 11pt; color: blue;"><o:p></o:p></span></font></p>
  </div>
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
 color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] <b><span
 style="font-weight: bold;">On Behalf Of </span></b>Kenneth Skovhede,
GEOGRAF A/S<br>
  <b><span style="font-weight: bold;">Sent:</span></b> Tuesday,
February 17, 2009 1:38
PM<br>
  <b><span style="font-weight: bold;">To:</span></b> MapGuide Users
Mail List<br>
  <b><span style="font-weight: bold;">Subject:</span></b> Re:
[mapguide-users]
Regarding How to set the Initial Map View</span></font><font
 color="black"><span style="color: windowtext;"><o:p></o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal" style="margin-bottom: 12pt;"><font color="black"
 face="Times New Roman" size="3"><span style="font-size: 12pt;">There
was a bug in
Maestro that swapped some x/y coordinates, try using the newest build
(r3260).<o:p></o:p></span></font></p>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Regards, Kenneth Skovhede, GEOGRAF A/S<o:p></o:p></span></font></pre>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><br>
  <br>
  <a moz-do-not-send="true" href="mailto:ravinder.singh@BIRLASOFT.COM">ravinder.singh@BIRLASOFT.COM</a>
skrev: <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><u1:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><!--[if gte mso 9]><xml>
  <u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
  <u1:shapelayout u3:ext="edit">
   <u1:idmap u3:ext="edit" data="1"/>
  </u1:shapelayout>
</xml><![endif]--></u1:SmartTagType>Hi
All,<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">How to set the
Initial Map
View (Lower Left and Upper Right (XY Coordinates)) in MapGuide Maestro.<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">If I click on
Set View to
Current Layers Extent (In Maestro) &amp; Run the layout then map does
not
appears in the viewer , seems that &nbsp;map is there on the viewer but at
different position which is not visible at startup, Because when I try
to pan
the map multiple times left or right up or down&nbsp; it appears.<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">I am using MGOS
2.0, .Net<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;">Please assist&#8230;<u1:p></u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Book Antiqua" size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;;"><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><b><font color="gray" face="Book Antiqua"
 size="2"><span
 style="font-size: 10pt; font-family: &quot;Book Antiqua&quot;; color: gray; font-weight: bold;">Thanks,<u1:p></u1:p></span></font></b><o:p></o:p></p>
  <p class="MsoNormal"><st1:place w:st="on"><font color="gray"
 face="Times New Roman" size="2"><span
 style="font-size: 11pt; color: gray;">Ravi</span></font></st1:place><o:p></o:p></p>
  <u1:p></u1:p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><u1:p>&nbsp;</u1:p><o:p></o:p></span></font></p>
  <table class="MsoNormalTable" border="0" cellpadding="0">
    <tbody>
      <tr>
        <td
 style="padding: 0.75pt; background: white none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"
 bgcolor="white">
        <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">*********************************************************************************************************************************************************************<br>
"This message and any attachments are solely for the intended recipient
and may contain Birlasoft confidential or privileged information. If
you are not the intended recipient,any disclosure,copying, use, or
distribution of the information included in this message and any
attachments is <br>
prohibited. If you have received this communication in error, please
notify us by reply e-mail at (<a moz-do-not-send="true"
 href="mailto:administrator@birlasoft.com">administrator@birlasoft.com</a>)
and permanently delete this message and any attachments. Thank you."<br>
*********************************************************************************************************************************************************************<o:p></o:p></span></font></p>
        </td>
      </tr>
    </tbody>
  </table>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre style="text-align: center;"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre style="text-align: center;"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre style="text-align: center;"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;">

<hr align="center" size="4" width="90%">

</span></font></pre>
  <pre style="text-align: center;"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre style="text-align: center;"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">_______________________________________________<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">mapguide-users mailing list<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a moz-do-not-send="true"
 href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a moz-do-not-send="true"
 href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp; <o:p></o:p></span></font></pre>
  </div>
  <table>
    <tbody>
      <tr>
        <td bgcolor="#ffffff"><font color="#000000">*********************************************************************************************************************************************************************<br>
"This message and any attachments are solely for the intended recipient
and may contain Birlasoft confidential or privileged information. If
you are not the intended recipient,any disclosure,copying, use, or
distribution of the information included in this message and any
attachments is <br>
prohibited. If you have received this communication in error, please
notify us by reply e-mail at (<a class="moz-txt-link-abbreviated" href="mailto:administrator@birlasoft.com">administrator@birlasoft.com</a>) and
permanently delete this message and any attachments. Thank you."<br>
*********************************************************************************************************************************************************************<br>
        </font></td>
      </tr>
    </tbody>
  </table>
  <table>
    <tbody>
      <tr>
        <td bgcolor="#ffffff"><font color="#000000">*********************************************************************************************************************************************************************<br>
"This message and any attachments are solely for the intended recipient
and may contain Birlasoft confidential or privileged information. If
you are not the intended recipient,any disclosure,copying, use, or
distribution of the information included in this message and any
attachments is <br>
prohibited. If you have received this communication in error, please
notify us by reply e-mail at (<a class="moz-txt-link-abbreviated" href="mailto:administrator@birlasoft.com">administrator@birlasoft.com</a>) and
permanently delete this message and any attachments. Thank you."<br>
*********************************************************************************************************************************************************************<br>
        </font></td>
      </tr>
    </tbody>
  </table>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>