<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Eric,<br>
after filing the ticket<br>
<br>
<a class="moz-txt-link-freetext" href="http://trac.openlayers.org/ticket/2812">http://trac.openlayers.org/ticket/2812</a><br>
<br>
I got a message from Ilias, because he had to deal with the same
problem. His solution to add to the selectCtrl an onUnselect and in
this function to call<br>
<br>
highlightCtrl.unhighlight(feature);<br>
<br>
works fine for me. The two controls interfere and by calling a function
of one in the other solves the problem. Anyway I think that a solution
of only one control for highlight and select might be valuable, or?<br>
<br>
Otherwise an example for this problem should be under examples and I
would be happy to provide it.<br>
<br>
Kind regards,<br>
Christian<br>
<br>
<br>
Eric Lemoine wrote:
<blockquote
 cite="mid:AANLkTimbRqJXC-j7w3fgTeYxjZz6Xm6xSj9RJ-W-odT4@mail.gmail.com"
 type="cite">
  <pre wrap="">On Thu, Aug 26, 2010 at 9:13 AM, Christian Niemitz-Rossant
<a class="moz-txt-link-rfc2396E" href="mailto:cnr@m-click.de">&lt;cnr@m-click.de&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I have some troubles using feature selection with highlight and toggle:

In the OpenLayers example highlight-feature.html I replaced the line 55
which is

{clickout: true}

by

{toggle: true}

Then I applied these steps

1. move cursor on the left triangle =&gt; triangle is highlighted
2. click on the left triangle =&gt; triangle is selected
3. move cursor out of the triangle =&gt; triangle is still selected
4. move cursor on the left triangle =&gt; triangle is highlighted
5. click on the triangle =&gt; triangle is normal
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I don't observe that. It gets selected in my case, which is expected I guess.

  </pre>
  <blockquote type="cite">
    <pre wrap="">6. move cursor out of the triangle =&gt; triangle is still normal
    </pre>
  </blockquote>
  <pre wrap=""><!---->
It remains selected for me.

  </pre>
  <blockquote type="cite">
    <pre wrap="">7. move cursor on the triangle (no click!) =&gt; triangle is highlighted
8. move cursor out of the triangle =&gt; triangle is shown as selected (without
click!?)

So somehow the select and the highlight get confused about the correct
style. The feature is not selected, but it is displayed as selected.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Indeed. If I click the feature again to toggle it I also observe
incorrect behavior when moving out and in.


  </pre>
  <blockquote type="cite">
    <pre wrap="">It looks like a bug to me, but maybe there is another proposed way to use
highlight AND toggle at the same time (and hopefully including multiple).
    </pre>
  </blockquote>
  <pre wrap=""><!---->
So yes there's a bug. Can you please create a ticket for it please?

Thanks for reporting the problem.


  </pre>
</blockquote>
</body>
</html>