Hi Guys,<div><br></div><div>This totally has me beaten :&#39;( any help would be fantastic. I&#39;ve tried to hack the Hover handler and a few other ways but everything leads to a dead end.</div><div><br></div><div>The Measure control has two events, EVENT_TYPES: [&#39;measure&#39;, &#39;measurepartial&#39;] . The measurepartial is triggered from a (single) click (note sure how this actually works, something todo with handlers?). There is also an &#39;measure&#39; that is triggered from a double click (just as unsure).</div>
<div><br></div><div>How can I implement a 3rd event &#39;measurehover&#39;? Basically I want to give someone the ability to see &quot;how far this click will measure, if you click here&quot;.</div><div><br></div><div>This probably comes from the fact I don&#39;t understand (prototyping too well) and this code in Measure.js...</div>
<div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    initialize: function(handler, options) {</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        // concatenate events specific to measure with those from the base</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        this.EVENT_TYPES =</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">            OpenLayers.Control.Measure.prototype.EVENT_TYPES.concat(</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">            OpenLayers.Control.prototype.EVENT_TYPES</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        );</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        OpenLayers.Control.prototype.initialize.apply(this, [options]);</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        this.callbacks = OpenLayers.Util.extend(</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">            {done: this.measureComplete, point: this.measurePartial},</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">            this.callbacks</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        );</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        // let the handler options override, so old code that passes &#39;persist&#39; </font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        // directly to the handler does not need an update</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        this.handlerOptions = OpenLayers.Util.extend(</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">            {persist: this.persist}, this.handlerOptions</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        );</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        this.handler = new handler(this, this.callbacks, this.handlerOptions);</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    },</font></div>
</div><div><br></div><div>Thanks, it&#39;s really appreciated :)</div><div><br></div>