<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV>Hi Roald</DIV>
<DIV> </DIV>
<DIV>It was uncommented because I copied the code from another example and those lines were already commented out. I had since tried uncommenting those, and it worked! Sorry I didn't let the list know that I had solved it. Anyway, thanks for the response.</DIV>
<DIV> </DIV>
<DIV>I am still using v2.6. Haven't tried v2.7rc1 yet.</DIV>
<DIV> </DIV>
<DIV>Kind regards,</DIV>
<DIV> </DIV>
<DIV>Robert Sanson<BR><BR>>>> Roald de Wit <roald.dewit@lisasoft.com> 8/09/2008 4:53 p.m. >>><BR>Hi Robert,<BR><BR>It seems you are/were very close to the solution of you problem: to<BR>allow for the map to be dragged when your mouse pointer is over a<BR>selectable feature, you need to override the stopDown and stopUp<BR>attributes of the handler, just as you have in your code below (but then<BR>uncommented!).<BR><BR>Could you explain why you have these lines commented out? Have you tried<BR>uncommenting them? What version of OL are you using? 2.7-rc1, 2.6 or an<BR>older version?<BR><BR>Today crschidt explained to me that in 2.7 the SelectFeature control<BR>behaves a bit differently internally and in order for the fix work,<BR>you'd need to rewrite the code. See [1]<BR><BR>But this might not apply to you and you might have other reasons why it<BR>won't work for you.<BR><BR>Cheers, Roald<BR><BR>[1] <A href="http://trac.openlayers.org/wiki/SelectFeatureControlMapDragIssues">http://trac.openlayers.org/wiki/SelectFeatureControlMapDragIssues</A><BR>On Wed, 2008-09-03 at 06:56 +0930, Robert Sanson wrote: <BR>> I have an OL map that has a GML polygon layer (loaded from a WFS<BR>> source). I have a SelectFeature control that operates using hover:true<BR>> <BR>> var options = {<BR>> hover: true,<BR>> onSelect: function(feature) { <BR>> OpenLayers.Util.getElement('selfarm').innerHTML =<BR>> "<strong>Farm_id:</strong>" + feature.attributes.FARM_ID + "<BR>> <strong>Par_no:</strong>" + feature.attributes.PAR_ID<BR>> }<BR>> <BR>> };<BR>> var select = new<BR>> OpenLayers.Control.SelectFeature(fbnd, options);<BR>> map.addControl(select);<BR>> //select.handler.stopDown = false;<BR>> //select.handler.stopUp = false;<BR>> select.activate();<BR>> <BR>> Anyway, when I hover over a polygon, I get a a couple of the<BR>> attributes displayed in a div below the map. The problem I have is<BR>> that the normal click-and-drag control used for panning the map does<BR>> not work when I drag on a polygon feature. It only works when I drag<BR>> in a part of the map without one of these polygons.<BR>> <BR>> Any clues?<BR>> <BR>> Many thanks,<BR>> <BR>> Robert Sanson<BR>> <BR>> <BR>> <BR>> ------------------------------------------------------------------<BR>> The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.<BR>> ------------------------------------------------------------------<BR>> <BR>> <BR>> <BR>> <BR>> <BR>> This message has been scanned for malware by SurfControl plc.<BR>> www.surfcontrol.com<BR>> <BR>> <BR>> <BR>-- <BR>Roald de Wit<BR>Software Engineer<BR>roald.dewit@lisasoft.com<BR><BR>Commercial Support for Open Source GIS Software<BR><A href="http://lisasoft.com/LISAsoft/SupportedProducts/">http://lisasoft.com/LISAsoft/SupportedProducts/</A><BR><BR>_______________________________________________<BR>Users mailing list<BR>Users@openlayers.org<BR><A href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A><BR><BR></DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.<br>
------------------------------------------------------------------</td></tr></table></BODY></HTML>