<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<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="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@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]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Ok guys, I am a little confused by this
thread. Here is the most basic example (in PHP):<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'><?php<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'> include
'../mapviewerphp/constants.php';<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'> MgInitializeWebTier('C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\webconfig.ini');<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'> $site =
new MgSite();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'> $site->Open(new
MgUserInformation("Anonymous", ""));<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'> $sessionId
= $site->CreateSession();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'> $webLayout
= "Library://Samples/Sheboygan/Layouts/SheboyganPhp.WebLayout";<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'>?><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'><html><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'><head><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'> <title>Simple
Sample Application</title><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'></head><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'><body marginheight="0"
marginwidth="0"><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'><iframe id="viewerFrame"
width="100%" height="100%" frameborder=0
scrolling="no"
src="../mapviewerphp/ajaxviewer.php?SESSION=<?= $sessionId
?>&WEBLAYOUT=<?= $webLayout ?>"></iframe><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'></body><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Courier><span style='font-size:
10.0pt;font-family:Courier;color:navy'></html><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>That’s it that’s all. As long
as you define a web layout in MapGuide Studio you do not need to worry about
the content of the mapviewerphp folder. That is installed as part of the
product and is not part of the sample.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>If you do not like the UI provided by
MapGuide, turn off all of the elements in the web layout and create your own with
HTML/JavaScript. I think Alain also posted an example to this list recently
that modified the default viewer, placing the legend/layer control on the
right.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Am I missing something wrt your questions?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Bob<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
triplederby100-propos@yahoo.com [mailto:triplederby100-propos@yahoo.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, March 24, 2006 6:26
PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">users@mapguide.osgeo.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [mapguide-users] A
simple .Net sample</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Courier><span
style='font-size:10.0pt;font-family:Courier'>... and not to mention the
processing of template files and replacing string tokens with some real values
at runtime :) Very crafty. But it appears that's what the "viewer"
(as designed) is comprising of. <br>
<br>
But there must be a straight-forward way of getting a client up and running, be
it in .NET or whatever, like I am with MapServer. I second what you say.<br>
<br>
Kaarigar<br>
====================<o:p></o:p></span></font></p>
<div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
----- Original Message ----<br>
From: Steven J Reed <sjreed@edcomputing.com><br>
To: <st1:PersonName w:st="on">users@mapguide.osgeo.org</st1:PersonName><br>
Sent: Friday, March 24, 2006 5:13:19 PM<br>
Subject: [mapguide-users] A simple .Net sample<br>
<br>
<br>
<o:p></o:p></span></font></p>
<xmeta http-equiv="Content-Type" content="text/html; charset=us-ascii"><xmeta name="Generator" content="Microsoft Word 11 (filtered medium)"></xmeta></xmeta>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Would it be too much to ask for a simple .Net sample, say
something where the code was all in one place? The current
ajaxviewersample and dwfviewersample are really just shells that include code
from other directories, then when you look at them they include still more
code. It is difficult to determine what is really needed!<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>While I’m asking, why aren’t the .Net samples in
the form of .Net projects? If you really want .Net programmers to use
this put it in the form they are used to seeing, which is not something that
has to be put in a Program Files\ MapGuideOpenSource\ WebServerExtensions\ www
directory!<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>And of course these samples should have much of the initialization
code in the code-behind module, not embedded in the html code. <u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Enough bitching, but it really looks like the .Net
implementation is an afterthought!<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><u1:p> </u1:p><o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</body>
</html>