<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Browallia New";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-mailStijl17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=NL link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi list,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>A former colleague of mine had programmed a
little php application where you can search for an address and zoom to the
coordinates of the address. In a form you can type a search string and press ‘search’.
The application searches a database and gives a result in a list. When a user
select a result, coordinates from the database are used to zoom in mapguide.
See for an example <a
href="http://mapguide2.gisnet.nl/sites/Zoeterwoude/index.php">http://mapguide2.gisnet.nl/sites/Zoeterwoude/index.php</a>
<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Now someone else want to use the same
functionality in a fusion environment. The current application is not working
in a fusion environment because the zoom function needs to be updated. Somehow I
can’t find the code to do this correctly. My knowledge of PHP, javascript,
fusion and so is limited. I hope some knows how to do this or where I can find
a useful example.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>From the old source code the following function
will do the zooming. The XC and YC are coordinates from the database.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><script><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>function
showAdres(value)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>{<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>//
alert(window.top.ViewerFrame.mapFrame.name);<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> ar
= value.split("-");<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> xc
= ar[0];<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> yc
= ar[1];<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>//
alert(xc);<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> window.top.ViewerFrame.mapFrame.ZoomToView(xc,yc,500,true);<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>}<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'></script><o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='color:black'>I want to run the application in the taskpane
part in this site<o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='color:black'><a
href="http://mapguide2.gisnet.nl/sites/dinkelland/dinkelland.php">http://mapguide2.gisnet.nl/sites/dinkelland/dinkelland.php</a>
<o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='color:black'>met vriendelijke groet, <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><span
style='color:black'>GIS<i><sup>kit</sup></i><sup> </sup>BV<br>
<br>
Rico van Driel<o:p></o:p></span></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
style='border-collapse:collapse'>
<tr>
<td width=161 valign=top style='width:120.5pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;color:#333333'>GIS<sup>kit</sup> BV<br>
Postbus 489<br>
3990 GG Houten<br>
<br>
</span><span style='font-size:10.0pt;color:#404040'>De Molen 15<br>
3994 DA Houten</span><span style='font-size:10.0pt;color:#333333'>
</span><span style='font-size:10.0pt;color:#333333'><o:p></o:p></span></p>
</td>
<td width=302 valign=top style='width:8.0cm;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal><span style='font-size:10.0pt;color:#333333'><br>
</span><span lang=EN-US style='font-size:10.0pt;color:#333333'>Tel:
030-6340430<br>
Fax: 030-6342433<br>
</span><span lang=EN-US style='font-size:10.0pt;color:#333333'><br>
email: </span><span style='font-size:10.0pt;
color:#333333'><a href="mailto:info@giskit.nl" title="mailto:info@giskit.nl"><span
lang=EN-US style='color:blue'>info@giskit.nl</span></a></span><span
lang=EN-US style='font-size:10.0pt;color:#333333'><br>
</span><span lang=EN-US style='font-size:10.0pt;color:black'>www:
</span><u><span style='font-size:10.0pt;color:blue'><a
href="http://www.giskit.nl/"><span lang=EN-US style='color:blue'>http://www.giskit.nl</span></a></span></u><u><span
style='font-size:10.0pt;color:blue'> </span></u><span lang=EN-US
style='font-size:12.0pt'><o:p></o:p></span></p>
</td>
</tr>
</table>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:7.5pt;color:#333333'><a href="blocked::http://www.giskit.nl/"
title="blocked::http://www.giskit.nl/ http://www.giskit.nl/"><span
style='color:#333333;text-decoration:none'><br>
</span><span style='color:#333333'>Op al onze aanbiedingen en overeenkomsten
zijn de algemene voorwaarden van FENIT, gedeponeerd ter Griffie van de
Arrondissementsrechtbank te Den Haag op 3 juni 2003 onder nummer 60/2003 van
toepassing. Een exemplaar zenden wij u desgewenst kosteloos toe.</span></a></span><span
style='font-size:10.0pt;color:#333333'><o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>