<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)">
<!--[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]-->
<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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Palatino Linotype";
        panose-1:2 4 5 2 5 5 5 3 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {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:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>So GetParent() worked when things were called with “parent.parent.parent.mapFrame”;
however, what if I have something in AJAX like this:<i><o:p></o:p></i></span></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>function OnPageLoad()<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>{<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>
parent.ZoomToView(<%= GetRequestParameters()["X"] %>, <%=
GetRequestParameters()["Y"] %>, <%=
GetRequestParameters()["Scale"] %>, true);<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Courier New";
color:#4F81BD'>}<o:p></o:p></span></i></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>I
then modify by adding your code below and then try:<o:p></o:p></span></p>
<p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>function GetParent()<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>
{<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>
if (parent.Fusion) {<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>
return parent;<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>
} else if (parent.parent.Fusion) {<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>
return parent.parent;<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Courier New";
color:#4F81BD'>
}<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'> }<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'><o:p> </o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>function OnPageLoad()<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>{<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New";color:#4F81BD'>
GetParent().ZoomToView(<%= GetRequestParameters()["X"] %>,
<%= GetRequestParameters()["Y"] %>, <%=
GetRequestParameters()["Scale"] %>, true);<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Courier New";
color:#4F81BD'>}</span></i><i><span style='color:#4F81BD'><o:p></o:p></span></i></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>This code is using the sample gotopoint.aspx file. When
I select the link that activates this gotopoint, the URL contains the X Y and
scale <a
href="http://172.16.186.38/mapguide2010/UtilityMap/gotopoint.aspx?X=632593.974151717&Y=4989398.03115329&Scale=25000">http://172.16.186.38/mapguide2010/UtilityMap/gotopoint.aspx?X=632593.974151717&Y=4989398.03115329&Scale=25000</a>
which should be passed into this onPageLoad() function. However it
appears that nothing is firing for OnPageLoad – so when I click the link
nothing happens, no error message or anything.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Can anyone help with this problem? Also, can anyone
point me to something that would help explain this parent.parent. syntax?
I’m not really certain why at one point we would use parent.function() vs
parent.parent.parent.function() etc.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks again<o:p></o:p></p>
<p class=MsoNormal>Fraser<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Berdel,
Brian<br>
<b>Sent:</b> Wednesday, September 16, 2009 9:02 AM<br>
<b>To:</b> MapGuide Users Mail List<br>
<b>Subject:</b> [mapguide-users] RE: parent.parent.parent.mapFrame - AJAX vs
FUSION<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>If you want to add the reference
to your fusion index page, add the following to your aspx (task pane) page<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>function</span><span style='font-size:
10.0pt;font-family:"Courier New"'> GetParent()<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'> {<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
<span style='color:blue'>if</span> (parent.Fusion) {<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
<span style='color:blue'>return</span> parent;<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
} <span style='color:blue'>else</span> <span style='color:blue'>if</span>
(parent.parent.Fusion) {<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>
<span style='color:blue'>return</span> parent.parent;<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
}<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Courier New"'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>Then
you can call functions in the same way as before but substitute<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>GetParent().<i>DigitizePoint(OnPointDigitized);<o:p></o:p></i></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'><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'><o:p> </o:p></span></p>
<div>
<div>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Palatino Linotype","serif";
color:#1F497D'>Brian Berdel</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Palatino Linotype","serif";
color:#1F497D'>McMahon Associates, Inc.</span><span style='font-size:12.0pt;
font-family:"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Palatino Linotype","serif";
color:#1F497D'>p: 215.283.9444 x 260</span><span style='font-size:12.0pt;
font-family:"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Palatino Linotype","serif";
color:#1F497D'><a href="http://www.mcmtrans.com">www.mcmtrans.com</a></span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D'> <o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D'> </span><span style='color:#1F497D'><o:p></o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Chris
Claydon<br>
<b>Sent:</b> Tuesday, September 15, 2009 4:43 PM<br>
<b>To:</b> MapGuide Users Mail List<br>
<b>Subject:</b> [mapguide-users] RE: parent.parent.parent.mapFrame - AJAX vs
FUSION<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>I think you should be able to
reference the MapGuideViewerAPI.js script from your aspx page, and then just call
DigitizePoint directly without any window.top or parent references.<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'>It should also be possible to
add a reference to MapGuideViewerAPI.js to the index.html file in the Fusion
template you’re using, and reference it using window.top…<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'>It’s been a while since
I’ve played around with this stuff, so someone else may be able to
provide specifics…<o:p></o:p></span></p>
<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 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Fraser
Burgess<br>
<b>Sent:</b> Tuesday, September 15, 2009 1:40 PM<br>
<b>To:</b> MapGuide Users Mail List<br>
<b>Subject:</b> [mapguide-users] parent.parent.parent.mapFrame - AJAX vs FUSION<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><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>I’m making steady progress with my project and
learning many things about MapGuide along the way thanks largely to the help
from those on this list – many thanks to those who have helped so far<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>From what I can tell parent.parent.parent.mapFrame is how
the map frame is referenced from the task pane in the AJAX viewer. I have
been reading posts about how this is referenced in Fusion and it seems the <i>MapGuideViewerAPI.js</i>
file has a bit of info. Unfortunately I’m having a bit if trouble
putting the pieces together and was hoping that someone here may steer me in
the right direction.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>In both AJAX and FUSION I’m working from the taskpane
and using the markup scripts that are part of the AJAX demo’s and
tutorials.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I assume I need to substitute either ‘Fusion’ or
‘window.top.Fusion’ somehow for ‘<i><span style='font-size:
10.0pt;font-family:"Courier New"'>parent.parent.parent.mapFrame.DigitizePoint(OnPointDigitized);’.
</span></i>in my script however I have yet to do this in such a way that it
works. I keep getting ‘Object doesn’t support this property
or method’.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>So for example in my editmarkup.aspx code for example, I
have the following function which should be activated when I click the digitize
point button<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New"'>
function AddPoint()<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New"'>
{<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New"'>
SetDigitizeInfo(EDIT_POINT_HELP);<o:p></o:p></span></i></p>
<p class=MsoNormal style='text-autospace:none'><i><span style='font-size:10.0pt;
font-family:"Courier New"'>
parent.parent.parent.mapFrame.DigitizePoint(OnPointDigitized);<o:p></o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Courier New"'>
}</span><o:p></o:p></i></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>In Fusion this code gives an error
‘parent.parent,parent.mapFrame’ is null or not an object<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I see that in MapGuideViewerAPI.js<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>function
DigitizePoint(handler) {<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'> if
(handler) {<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
var Fusion = window.top.Fusion;<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
var mapWidget = Fusion.getWidgetById(mapWidgetId);<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
var digitizer = new Fusion.Tool.Canvas.Point(mapWidget);<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
digitizer.mouseUp = PointHandlers.prototype.mouseUp;<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
Object.inheritFrom(digitizer, Fusion.Tool.Canvas.prototype, []);<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
digitizer.initializeCanvas();<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
var activeWidget = mapWidget.buttonSet.activeButton;<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
mapWidget.buttonSet.setActiveButton(null);<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
digitizer.handler = function() {<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
handler.apply(null, arguments);<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
activeWidget.setActive(true);<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
}<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
digitizer.activateCanvas();<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
//add a listener to update the position of the features<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
var mapWidget = Fusion.getWidgetById(mapWidgetId);<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
mapWidget.registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED, <o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
function(){<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
digitizer.updatePx();<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
digitizer.clearContext();<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
digitizer.draw(digitizer.context);<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
}<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'>
);<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in;text-autospace:none'><i><span
style='font-size:10.0pt;font-family:"Courier New"'> }<o:p></o:p></span></i></p>
<p class=MsoNormal style='margin-left:1.0in'><i><span style='font-size:10.0pt;
font-family:"Courier New"'>}</span><o:p></o:p></i></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks<o:p></o:p></p>
<p class=MsoNormal>Fraser<o:p></o:p></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray'>Important notice to recipients:<br>
Copies of documents that may be relied upon by you are limited to the printed
copies (also known as 'hard copies') that are signed and sealed by the Engineer
and/or Land Surveyor. Files in electronic formats, or other types of
information furnished by the Engineer and/or Land Surveyor to you such as text,
data or graphics are for your convenience only. Any conclusions or information
obtained or derived from such electronic files will be at the user's sole risk.
When transferring documents in electronic formats, the Engineer and/or Land
Surveyor makes no representation as to long-term compatibility, usability, or
readability of the documents resulting from the use of software application packages,
operating systems or computer hardware differing from those used by McMahon
Associates, Inc. at the beginning of the project.</span><span style='font-size:
12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</div>
</body>
</html>