<html>
<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]-->
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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:blue;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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 bgcolor=white link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Please find an example of code for the
different steps: </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:red'><?php</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>include</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"../../mapviewerphp/constants.php"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>include</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"../../mapviewerphp/common.php"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>//include 'common.php';</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>//include 'constants.php';</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$args</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#660000'>$_SERVER</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>[</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>'REQUEST_METHOD'</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>]</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>==</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"POST"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>)</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>?</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$_POST</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>:</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$_GET</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$args</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>[</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>'SESSION'</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>];</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mapName</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$args</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>[</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>'MAPNAME'</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>];</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$locale</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"en"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$dataName</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"test"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$popup</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:red'>0</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$lcolor</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"0000ff"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$ffcolor</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"ff0000"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$fbcolor</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"ffffff"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$transparent</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:red'>0</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$distance</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:red'>0</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$units</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"Points"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$linestyle</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"Solid"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$fillstyle</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"Solid"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$thickness</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:red'>1</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$merge</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:red'>0</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$foretrans</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:red'>50</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$srs</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>""</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$featureName</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"Z"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$params</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>null;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>//SetLocalizedFilesPath(GetLocalizationPath());</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$dataSource</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"Session:"</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$sessionId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"//"</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$dataName</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>".FeatureSource"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$layerDef</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"Session:"</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$sessionId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"//"</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$dataName</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>".LayerDefinition"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>InitializeWebTier();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$cred</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgUserInformation(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$cred</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetClientIp(GetClientIp());</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$cred</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetClientAgent(GetClientAgent());</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:gray'>//connect to the site and get a feature service and a
resource service instances</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$site</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgSiteConnection();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$site</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->Open(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$cred</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$featureSrvc</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$site</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->CreateService(MgServiceType::FeatureService);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$resourceSrvc</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$site</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->CreateService(MgServiceType::ResourceService);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$dataSourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$dataSource</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$layerDefId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$layerDef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:gray'>//load the map runtime state</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$map</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgMap();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$map</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->Open(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$resourceSrvc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mapName</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:gray'>//locate the buffer layer in the map. It might or
might not already exist</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$layers</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$map</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetLayers();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:gray'>// Get the map SRS</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$srsFactory</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgCoordinateSystemFactory();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$srsDefMap</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>GetMapSRS(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$map</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mapSrsUnits</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>""</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$srsMap</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$srsFactory</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->Create(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$srsDefMap</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$arbitraryMapSrs</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$srsMap</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetType()</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>==</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgCoordinateSystemType::Arbitrary;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:blue'>if</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#660000'>$arbitraryMapSrs</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>)</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$mapSrsUnits</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$srsMap</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetUnits();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:gray'>//Create/Modify layer definition</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$layerDefContent</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>BuildLayerDefinitionContent();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$resourceSrvc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetResource(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$layerDefId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$layerDefContent</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>null);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$classDef</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgClassDefinition();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$classDef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetName(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$featureName</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$classDef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetDescription(GetLocalizedString(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"DATACLASSDESCR"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$locale</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$classDef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetDefaultGeometryPropertyName(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"GEOM"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:gray'>//Set KEY
property</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgDataPropertyDefinition(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"KEY"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetDataType(MgPropertyType::Int32);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetAutoGeneration(</span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:blue'>true</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetReadOnly(</span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:blue'>true</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$classDef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetIdentityProperties()->Add(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$classDef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetProperties()->Add(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:gray'>//Set ID
property.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgDataPropertyDefinition(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"ID"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetDataType(MgPropertyType::Int32);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$classDef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetProperties()->Add(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:gray'>//Set geometry
property</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgGeometricPropertyDefinition(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"GEOM"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:gray'>////$prop->SetGeometryTypes(MgFeatureGeometricType::mfgtSurface);
//</span></font><b><font size=2 color="#7ca5d5" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#7CA5D5;font-weight:
bold'>TODO</span></font></b><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:gray'> use the constant
when exposed</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetGeometryTypes(</span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:red'>4</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$classDef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetProperties()->Add(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$prop</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:gray'>//Create the
schema</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$schema</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgFeatureSchema(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"DataSchema"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>GetLocalizedString(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"DATASCHEMADESCR"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$locale</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$schema</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetClasses()->Add(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$classDef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:gray'>//finally,
creation of the feature source</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$sdfParams</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgCreateSdfParams(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"LatLong"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$srsDefMap</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$schema</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$featureSrvc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->CreateFeatureSource(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$dataSourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sdfParams</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:gray'>//Add layer to
map</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$layer</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgLayer(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$layerDefId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$resourceSrvc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$layer</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetName(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$dataName</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$layer</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetLegendLabel(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$dataName</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$layer</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetDisplayInLegend(</span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:blue'>true</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$layer</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetSelectable(</span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:blue'>true</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$layers</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->Insert(</span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:red'>0</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$layer</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$fsResourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$dataSource</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$fsReader</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$resourceSrvc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetResourceContent(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$fsResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$fsXml</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$fsReader</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->ToString();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$fsDomDoc</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>DOMDocument::loadXML(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$fsXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$ldResourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$layerDef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$ldReader</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$resourceSrvc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetResourceContent(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$ldResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$ldXml</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$ldReader</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->ToString();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$ldDomDoc</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>DOMDocument::loadXML(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$lddXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Read the web layout into an XML DOM document object.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$md</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"Library://Test/X.MapDefinition"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdResourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$md</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdReader</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$resourceSrvc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetResourceContent(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdXml</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdReader</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->ToString();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdDomDoc</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>DOMDocument::loadXML(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Create the MapLayer XML nodeset in the first position</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$targetNode</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->getElementsByTagName(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"MapLayer"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>)->item(</span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:red'>0</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$targetNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->parentNode->insertBefore(</span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>DOMElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"MapLayer"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>),</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$targetNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"Name"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$dataName</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"ResourceId"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$layerDef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"Selectable"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"false"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"ShowInLegend"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"false"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"LegendLabel"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"ExpandInLegend"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"false"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"Visible"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"true"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"Group"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Prepare the updated XML to be written out to the session.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$updatedXml</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->saveXML();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$byteSource</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgByteSource(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$updatedXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>strlen(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$updatedXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Create a web layout in the session to hold the updated version</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// from the library.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionMapName</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$mdResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetName();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionMapDefinition</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"Session:</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionId</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>//</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionMapName</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>.MapDefinition"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionResourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionMapDefinition</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Write the updated mapdefinition</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$resourceSrvc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetResource(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$byteSource</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetReader(),</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>null);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>//Test</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$md1</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"Session:</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionId</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>//X.MapDefinition"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdResourceId2</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$md1</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdReader2</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$resourceSrvc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetResourceContent(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdResourceId2</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdXml2</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdReader2</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->ToString();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdDomDoc2</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>DOMDocument::loadXML(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdXml2</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Read the web layout into an XML DOM document object.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wl</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"Library://Test/Y.WebLayout"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// </span></font><b><font size=2 color="#7ca5d5" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#7CA5D5;font-weight:
bold'>TODO</span></font></b><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:gray'> Constant!</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlResourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wl</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlReader</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$resourceSrvc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetResourceContent(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlXml</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlReader</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->ToString();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlDomDoc</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>DOMDocument::loadXML(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Add the MapDefinition in the WebLayout</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mapdef</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->getElementsByTagName(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"ResourceId"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>)->item(</span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:red'>0</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mapdef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->nodeValue</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$md1</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Prepare the updated XML to be written out to the session.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlupdatedXml</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$wlDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->saveXML();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlbyteSource</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgByteSource(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlupdatedXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>strlen(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlupdatedXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Create a web layout in the session to hold the updated version</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// from the library.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlsessionMapName</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$wlResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetName();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlsessionWebLayout</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"Session:</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionId</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>//</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlsessionMapName</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>.WebLayout"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlsessionResourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlsessionWebLayout</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Write the updated web layout to the session.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$resourceSrvc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetResource(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlsessionResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlbyteSource</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetReader(),</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>null);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Redirect to the Ajax
viewer pointing at the map at the desired coordinates.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$redirectTo</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"mapguide/mapviewerajax/?SESSION=</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionId</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>&WEBLAYOUT=</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#660000'>$wlsessionWebLayout</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$redirectTo</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"mapguide/mapviewerajax/?WEBLAYOUT=</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlsessionWebLayout</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>&SESSION=</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionId</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$host</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$_SERVER</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>[</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>"HTTP_HOST"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>];</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$url</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"http://</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$host</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>/</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$redirectTo</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>function</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>BuildLayerDefinitionContent()</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>{</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>global</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$dataSource</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$featureName</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$ffcolor</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$fbcolor</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$transparent</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$linestyle</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$thickness</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$lcolor</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$fillstyle</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$foretrans</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$xtrans</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>sprintf(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"%02x"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:red'>255</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>*</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$foretrans</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>/</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:red'>100</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$layerTempl</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>file_get_contents(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"../../viewerfiles/arealayerdef.templ"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$xmlStr</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>sprintf(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$layerTempl</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$dataSource</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$featureName</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"GEOM"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$fillstyle</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$xtrans</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$ffcolor</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$transparent</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>?</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"ff"</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$fbcolor</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>:</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"00"</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$fbcolor</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$linestyle</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$thickness</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>
</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$lcolor</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$src</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgByteSource(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$xmlStr</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>strlen(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$xmlStr</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>return</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$src</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetReader();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>function</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>GetMapSrs(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$map</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>)</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>{</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$srs</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$map</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetMapSRS();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>if</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#660000'>$srs</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>!=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>""</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>)</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:blue'>return</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$srs</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>//No SRS, set to ArbitrayXY meters</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>return</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"LOCALCS[\"Non-Earth
(Meter)\",LOCAL_DATUM[\"Local
Datum\",0],UNIT[\"Meter\",
1],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]]"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>}</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Regards,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Arnaud De Groof</span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>
<hr size=2 align=center>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <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> vendredi 9 janvier 2009 9:03<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]
Adding a temporary Layer in MapGuide</span></font><font color=black><span style='color:windowtext'></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'>You need several steps.<br>
<br>
1. Create a temporary FeatureSource for an SDF<br>
2. Insert data into the temporary FeatureSource<br>
3. Create a temporary LayerDefinition that points to the temporary
FeatureSource<br>
4. Insert the temporary layer into the runtime map<br>
5. Refresh the map<br>
<br>
This is a generic recipe for building dynamic layers, redlining, buffering,
etc.<br>
There exist code that does this in the "buffer" function used in the
basic AJAX
viewer.<br>
Look at the "buffer.[php,aspx,jsp]" file in:<br>
C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\www\mapviewer[php,net,jsp]<br>
<br>
If you have trouble with one of the steps, please ask again.<br>
<br>
An easier way of dealing with it would be to create a layer that displays ALL
points.<br>
Then use the SQL WHERE statement as the layers "filter" property.<br>
This approach obviously has some limitations.</span></font></p>
<pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Regards, Kenneth Skovhede, GEOGRAF A/S</span></font></pre>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
Carmelo Saffioti skrev: </span></font></p>
<div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Hi everybody!</span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>I hope you can help me about this problem I'm having
since several days:</span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>1) having x,y coordinates of a point, resulting from
a sql query, how can I display it at runtime on the map?</span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>2) having x,y coordinates of a sequence of points,
resulting from a sql query, how can I display them at runtime on the map?</span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>I really hope you can help me with that</span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Thank you very much in advance</span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Carmelo</span></font></p>
</div>
</div>
<pre wrap><font size=2 color=black face="Courier New"><span style='font-size:
10.0pt'> </span></font></pre><pre style='text-align:center'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>
<hr size=4 align=center>
</span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>_______________________________________________</span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>mapguide-users mailing list</span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a></span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a></span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre></div>
<!--[object_id=#spacebel.be#]--><P><FONT color=#0000ff><FONT face=Tahoma><STRONG>
<HR>
<FONT size=2>E-MAIL DISCLAIMER</FONT></STRONG></FONT></FONT></P>
<P><FONT face=Arial color=#0000ff size=1>The present message may contain confidential and/or legally privileged information. If you are not the intended addressee and in case of a transmission error, please notify the sender immediately and destroy this E-mail. Disclosure, reproduction or distribution of this document and its possible attachments is strictly forbidden.</FONT></P>
<P><FONT face=Arial color=#0000ff size=1>SPACEBEL denies all liability for incomplete, improper, inaccurate, intercepted, (partly) destroyed, lost and/or belated transmission of the current information given that unencrypted electronic transmission cannot currently be guaranteed to be secure or error free.<BR>Upon request or in conformity with formal, contractual agreements, an originally signed hard copy will be sent to you to confirm the information contained in this E-mail.</FONT></P>
<P><FONT face=Arial color=#0000ff size=1>SPACEBEL denies all liability where E-mail is used for private use.</FONT></P>
<P><FONT size=2><FONT face=Arial color=#0000ff size=1>SPACEBEL cannot be held responsible for possible viruses that might corrupt this message and/or your computer system.<BR></FONT></P><FONT face=Arial color=#0000ff>
<HR>
</FONT></FONT>
<P></P></body>
</html>