<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EstiloCorreo17
        {font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>Hello,</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>I added the fllowing lines into the initialize function of the
EditingToolbar class:</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>Controls[1] = new OpenLayers.Control.Measure(OpenLayers.Handler.Path,
OpenLayers.Util.extend({displayClass: 'olControlDrawFeaturePath', title:_(&quot;Longitude&quot;)},
measureOptions));</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>layer.events.register(&quot;beforefeaturemodified&quot;,
controls[1], function(e){this.mesurar(e.feature.geometry)});</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>and bellow the function:</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>&nbsp;</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:black'>          mesurar: </span></font><font size=2 color="#7f0055"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#7F0055'>function</span></font><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>(g) </span></font><font
size=2 color="#7f0055" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#7F0055'>{</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color="#3f5fbf"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#3F5FBF'>              </span></font><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>alert(</span></font><font size=2 color="#8e00ff" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#8E00FF'>&quot;works!&quot;</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'>);</span></font></p>

<p class=MsoNormal><font size=2 color="#3f5fbf" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F5FBF'>          </span></font><font
size=2 color="#7f0055" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#7F0055'>}</span></font><font size=2
color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>,</span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>When I execute
it, it generates the error: &#8220;this.mesurar is not a function&#8221;</span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>Why the constructor
don&#8217;t understand mesurar as a function of his class?</span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>Thank&#8217;s a
lot</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=CA style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal style='text-autospace:none'><b><font size=1 face=Arial><span
lang=CA style='font-size:8.0pt;font-family:Arial;font-weight:bold'>Antoni Vidal</span></font></b></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=CA style='font-size:8.0pt;font-family:Arial'>Institut Cartogrāfic de
Catalunya    <b><span style='font-weight:bold'>Tel: +34-93 567 1500 Ext. 3228</span></b></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=CA style='font-size:8.0pt;font-family:Arial'>Parc de
Montjuīc                             <b><span style='font-weight:bold'>Fax:
+34-93 567 1567</span></b></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=CA style='font-size:8.0pt;font-family:Arial'>08038
Barcelona                            <a href="http://www.icc.cat/">http://www.icc.cat</a></span></font></p>

<p class=MsoAutoSig><font size=1 face=Arial><span style='font-size:8.0pt;
font-family:Arial'>Spain</span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=CA
style='font-size:12.0pt'>&nbsp;</span></font></p>

</div>

</body>

</html>