Hi all,<br>
<br>
I am probably having a conflict problem with some of my layers. I currently have 3 layers active on my installation:<br>
- a layer containing the data from a shapefile (running WMS)<br>
- a vector layer where users can draw<br>
- a layer dedicated to markers.<br>
<br>
I have noticed that if I place a marker, I cannot interact with it
afterwards unless I hide the vectors layer. The order is correct, I
load first the shp layer, then the vector one and then the markers one.<br>
<br>
I include here some of my code in hope that it will help, it&#39;s mostly from examples on openlayers so there&#39;s really nothing new.<br>
<br>
            map = new OpenLayers.Map(&#39;map&#39;,{maxExtent: new
OpenLayers.Bounds(195441.084706006,4171163.51662705,240142.089176109,4203199.94421431),
maxResolution: 120, units: &#39;dd&#39;});<br>
            layer = new OpenLayers.Layer.WMS( &#39;Landmass &#39;,
&#39;<a href="http://localhost:8585/cgi-bin/mapserv?map=/opt/fgs/apps/gmap-demo-cvs_MS_VERSION_54/htdocs/gmap75a.map&amp;">http://localhost:8585/cgi-bin/mapserv?map=/opt/fgs/apps/gmap-demo-cvs_MS_VERSION_54/htdocs/gmap75a.map&amp;</a>&#39;,
<br>
            {<br>
                layers: &#39;zak&#39;, <br>
                format:&#39;PNG&#39;, <br>
                bbox: &#39;195441.084706006,4171163.51662705,240142.089176109,4203199.94421431&#39;,<br>
                srs: &#39;EPSG:4326&#39;<br>
            });<br>
            lakegr_wms = new OpenLayers.Layer.WMS( &#39;Lakes&#39;,<br>
                &#39;<a href="http://localhost:8585/cgi-bin/mapserv?map=/opt/fgs/apps/gmap-demo-cvs_MS_VERSION_54/htdocs/gmap75a.map&amp;">http://localhost:8585/cgi-bin/mapserv?map=/opt/fgs/apps/gmap-demo-cvs_MS_VERSION_54/htdocs/gmap75a.map&amp;</a>&#39;,<br>

                {<br>
                    layers: &#39;sedi&#39;,<br>
                    transparent: &#39;true&#39;,<br>
                    format: &#39;image/png&#39;<br>
                },<br>
                {isBaseLayer: false}<br>
            );<br>
            vectors = new OpenLayers.Layer.Vector( &#39;Editable&#39; );<br>
            vectors.onFeatureInsert=function(feature) {<br>
               <br>
               var wkt=wktwriter.write(feature);<br>
               console.log(wkt);<br>
            }<br>
            map.addLayer(layer);<br>
            map.addLayers([lakegr_wms,vectors]);<br>
            map.addControl(new OpenLayers.Control.LayerSwitcher());<br>
                controls = {<br>
                    point: new OpenLayers.Control.DrawFeature(vectors,<br>
                                OpenLayers.Handler.Point),<br>
                    line: new OpenLayers.Control.DrawFeature(vectors,<br>
                                OpenLayers.Handler.Path),<br>
                    polygon: new OpenLayers.Control.DrawFeature(vectors,<br>
                                OpenLayers.Handler.Polygon),<br>
                    drag: new OpenLayers.Control.DragFeature(vectors)<br>
                };<br>
<br>
                for(var key in controls) {<br>
                    map.addControl(controls[key]);<br>
                }<br>
<br>
            <br>
            map.zoomTo(1);<br>
            var options = {<br>
                hover: true,<br>
                highlightOnly: true<br>
            };<br>
                <br>
            var select = new OpenLayers.Control.SelectFeature(vectors, options);<br>
            selectCtrl = new OpenLayers.Control.SelectFeature(vectors,<br>
                {<br>
                    clickout: true, <br>
                    onSelect: serialize<br>
                }<br>
            );<br>
            map.addControl(select);<br>
            map.addControl(selectCtrl);<br>
            select.activate();<br>
            selectCtrl.activate();<br>
            var markers = new OpenLayers.Layer.Markers( &#39;Markers&#39; );<br>
            map.addLayer(markers);<br>
<br>
Rest of the code is taken from the markers example on OpenLayers.<br>
<br>
Can anyone think of any reason why they would conflict? I am thinking
it has something to do with clicks and some of the controls I use might
be conflicting although I can&#39;t see any Javascript errors.<br>
<br>
Thanks in advance.<br>
<br>