Hi all,<br><br>another novice error probably. I&#39;m trying to replicate the function of the click to select, highlight selected example. I essentially copy/pasted the example into my code, but I&#39;m perplexed as to why I don&#39;t have the select on click feature activated? The highlighting works fine, but nothing happens when I click. My current set up is very close to the example, except I use a local gml rather than the vectors from the wkt geometry.<br>
here&#39;s my code, and I&#39;m using the web-url for the code.<br><br>var map, controls;<br>function init() {<br>            map = new OpenLayers.Map (&quot;map&quot;, <br>                    {<br>                    controls:[<br>
                    new OpenLayers.Control.Navigation(),<br>                    new OpenLayers.Control.PanZoomBar(),<br>                    new OpenLayers.Control.LayerSwitcher(),<br>                    new OpenLayers.Control.Attribution()],<br>
                sphericalMercator: true,<br>                maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),<br>                maxResolution: 156543.0399,<br>                numZoomLevels: 19,<br>
                units: &#39;m&#39;,<br>                projection: new OpenLayers.Projection(&quot;EPSG:900913&quot;),<br>                displayProjection: new OpenLayers.Projection(&quot;EPSG:4326&quot;),<br>                    }<br>
            );<br>            var myBaseLayer = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;,<br>        &quot;<a href="http://labs.metacarta.com/wms/vmap0">http://labs.metacarta.com/wms/vmap0</a>&quot;, {layers: &#39;basic&#39;, projection: &quot;myproj&quot;} );     <br>
         map.addLayer(myBaseLayer);    <br>         <br>         var topo = new OpenLayers.Layer.GML(&quot;Topography&quot;, &quot;data/test4.gml&quot;, {<br>  projection: new OpenLayers.Projection(&quot;EPSG:4326&quot;)}); <br>
         map.addLayer(topo);<br>// Selection and hoverstate controls<br>          var report = function(e) {<br>                OpenLayers.Console.log(e.type, <a href="http://e.feature.id">e.feature.id</a>);<br>            };<br>
            <br>            var highlightCtrl = new OpenLayers.Control.SelectFeature(topo, {<br>                hover: true,<br>                highlightOnly: true,<br>                renderIntent: &quot;temporary&quot;,<br>
                eventListeners: {<br>                    beforefeaturehighlighted: report,<br>                    featurehighlighted: report,<br>                    featureunhighlighted: report<br>                }<br>            });<br>
<br>   var selectCtrl = new OpenLayers.Control.SelectFeature(topo,<br>                {clickout: true}<br>            );<br><br>            map.addControl(highlightCtrl);<br>              map.addControl(selectCtrl);<br><br>
            highlightCtrl.activate();<br>            selectCtrl.activate();<br><br>            if( ! map.getCenter() ){<br>            topo.events.register(&#39;loadend&#39;, topo, function(){map.zoomToExtent(topo.getDataExtent())});<br>
            map.setCenter(null, null);<br>            };<br>            }<br><br>