<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Following up on this, since I haven't heard anything. I've played
    around with the canvas hit detection example here: <br>
    <br>
<a class="moz-txt-link-freetext" href="http://dev.openlayers.org/releases/OpenLayers-2.11/examples/canvas-hit-detection.html">http://dev.openlayers.org/releases/OpenLayers-2.11/examples/canvas-hit-detection.html</a><br>
    <br>
    and did the following:<br>
    <br>
    - made an overlay layer with some of features so that I could turn
    the layer on/off<br>
    - added the LayerSwitcher control to the map<br>
    - added onFeatureSelect and onFeatureUnselect events to the layers
    so a popup appears when you click on the features<br>
    - the popups appear when clicking on the visible features<br>
    - AND the popups appear when clicking on the "invisible" features in
    the overlay when it is TURNED OFF<br>
    <br>
    So, is this an issue with the HTML5 Canvas element itself or the way
    OL uses it to render Vector layers?<br>
    <br>
    Does turning a Canvas layer "off" via LayerSwitcher require some
    extra code?<br>
    <br>
    -Mike<br>
     <br>
    <br>
    <div class="moz-cite-prefix">On 6/26/2012 1:42 PM, Mike Ryan wrote:<br>
    </div>
    <blockquote class=" cite" id="mid_4FE9F49C_7040102_mry4n_net"
      cite="mid:4FE9F49C.7040102@mry4n.net" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      When I add a Vector layer using a Canvas renderer two bad things
      happen:<br>
      <br>
      1. Other Vector layers with points that have click events attached
      and are within the area covered by the Canvas layer are no longer
      clickable. The Canvas layers is blocking the click event. <br>
      <br>
      If a click event was added to the Canvas layer, the Canvas click
      event is fired rather than the point's in the other layer. <br>
      <br>
      Points in the other layer that are not within the Canvas layer
      area work properly.<br>
      <br>
      2. Even when I switch off the Canvas layer with the layerswitcher,
      the Canvas layer still behaves the same way -- even though the
      canvas layer can no longer be seen.<br>
      <br>
      Who's got an idea of what might be going on here?<br>
      <br>
      -Mike </blockquote>
    <br>
    <br>
  </body>
</html>