<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" 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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML - vooraf opgemaakt Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTML-voorafopgemaaktChar
        {mso-style-name:"HTML - vooraf opgemaakt Char";
        mso-style-priority:99;
        mso-style-link:"HTML - vooraf opgemaakt";
        font-family:Consolas;
        color:black;}
span.E-mailStijl19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.E-mailStijl20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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 bgcolor=white lang=NL link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Kenneth,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>The “parseInt” remark did the
trick. <o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>In MS internet explorer
the site is working. In Firefox not yet. Hopefully a real programmer at GISkit can
look in the code for more detail later. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='color:#365F91'>met vriendelijke groet, <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='color:#365F91'>GIS<i><sup>kit</sup></i><sup> </sup>BV<br>
<br>
Rico van Driel<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>Van:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>Namens </b>Kenneth Skovhede,
GEOGRAF A/S<br>
<b>Verzonden:</b> dinsdag 2 februari 2010 13:12<br>
<b>Aan:</b> mapguide-users@lists.osgeo.org<br>
<b>Onderwerp:</b> Re: [mapguide-users] Problem zoomtoview in mapguide 2.1<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>If I open the page, and type "kerk" and press
"zoek", I get a javascript error, "soort is not defined":<br>
<br>
<o:p></o:p></p>
<pre>j=soort.length; //alert(j)<o:p></o:p></pre>
<p class=MsoNormal>Try installing FireFox and Firebug to track the error. <br>
(you need to define variables before using them).<br>
<br>
Also, you split a string giving you an array of strings.<br>
You then pass strings into the ZoomToView function.<br>
Depending on how its processed, you will get really weird results, eg:<br>
<br>
var xc = "5";<br>
xc += 5;<br>
alert(xc); //Shows "55", NOT "10"<br>
<br>
Try using parseInt():<br>
<br>
xc = parseInt(ar[0]);<br>
yc = parseInt(ar[1]);<br>
<br>
<br>
This mat have worked in previous versions, as they only used x/y to send to the
server, <br>
and then parsed the results.<br>
<br>
<o:p></o:p></p>
<pre>Regards, Kenneth Skovhede, GEOGRAF A/S<o:p></o:p></pre>
<p class=MsoNormal>On 02-02-2010 12:09, Rico van Driel wrote: <o:p></o:p></p>
<p class=MsoNormal>Hi List,<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US>I have an search adres application that
uses the ZoomToView function as mentioned below. In previous MGOS versions this
function works fine. In MGOS 2.1 this function works also but after execution
the standard functions from mapguide does work anymore. For example if you pan
the map you will see a response from mapguide but the map will be blank.</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>function
showAdres(value)</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>{</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>//
alert(window.top.ViewerFrame.mapFrame.name);</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> </span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> ar
= value.split("-");</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> xc
= ar[0];</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> yc
= ar[1];</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> </span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>//
alert(xc);</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'> window.top.ViewerFrame.mapFrame.ZoomToView(xc,yc,500,true);</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>}</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US>See for example http:</span><span
lang=EN-US style='font-size:12.0pt'> <a
href="http://213.154.241.184/sites/lochem/index2.php">http://213.154.241.184/sites/lochem/index2.php</a>
(type ‘kerk’ and press “zoek” button, select address from list. After zooming
select for example the pan function and see what happens)</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:12.0pt'> </span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:12.0pt'>After zooming to a
address. The image shown is correct. But if I look to the X, Y cooridinates
shown left below, they are not correct.</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:12.0pt'> </span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US>On nable I can only find this post:</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US><a
href="http://n2.nabble.com/Couple-of-potential-bugs-in-MapGuide-2-1-API-AjaxViewer-td2610344.html#a2610344">http://n2.nabble.com/Couple-of-potential-bugs-in-MapGuide-2-1-API-AjaxViewer-td2610344.html#a2610344</a></span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US>I tried adding the numberValue =
numberValue - 0; line to the mainframe.templ file but this does not seem to
work.</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p>
<p class=MsoNormal>Annyone other suggestions? <o:p></o:p></p>
<p class=MsoNormal>met vriendelijke groet, <o:p></o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>GIS<i><sup>kit</sup></i><sup>
</sup>BV<br>
<br>
Rico van Driel<o:p></o:p></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><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><o:p></o:p></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>
<br>
email: </span><u><span lang=EN-US style='font-size:
10.0pt;color:blue'><a href="mailto:info@giskit.nl">info@giskit.nl</a></span></u><span
lang=EN-US style='font-size:10.0pt;color:#333333'><br>
</span><span lang=EN-US style='font-size:10.0pt'>www:
</span><u><span style='font-size:10.0pt;color:blue'><a
href="http://www.giskit.nl/"><span lang=EN-US>http://www.giskit.nl</span></a>
</span></u><o:p></o:p></p>
</td>
</tr>
</table>
<p class=MsoNormal><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
lang=EN-US 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><o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>mapguide-users mailing list<o:p></o:p></pre><pre><a
href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><o:p></o:p></pre><pre><a
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><o:p></o:p></pre><pre> <o:p></o:p></pre></div>
</body>
</html>