<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">I use this on the client side for tolerance. I use GeoServer and I don't know if it supports the tolerance and MapServer does. I used different pixel tolerance on each side of the point click to suit my own case.<br><br> map.events.register("click",map, function (e) {<br> var tolerance = { north : 3, south : 3, east : 1, west : 5}; //px<br> var bounds = new OpenLayers.Bounds();<br> bounds.extend(map.getLonLatFromPixel(e.xy.add(tolerance.east,tolerance.north)));<br> bounds.extend(map.getLonLatFromPixel(e.xy.add(-1 * tolerance.west,-1 * tolerance.south)));<br> <br> var coordinates = bounds.left + "," + bounds.bottom + " " + bounds.right + "," + bounds.top;<br> <br> //make getfeatureinfo request with coordinates as BBOX ; careful the format might not be the same as above...<br><br> Event.stop(e);<br> });<br><br></div><br><br><br><hr id="stopSpelling">> Date: Tue, 11 Dec 2007 09:39:38 -0800<br>> From: bpederse@gmail.com<br>> To: reinhard.ortner@edu.fh-kaernten.ac.at<br>> CC: users@openlayers.org<br>> Subject: Re: [OpenLayers-Users] getFeatureInfo<br>> <br>> hi,<br>> that's really a server-side change. in mapserver for example, you'd<br>> set TOLERANCE in your layer.<br>> <br>> <br>> On Dec 11, 2007 4:38 AM, R. Ortner<br>> <reinhard.ortner@edu.fh-kaernten.ac.at> wrote:<br>> ><br>> > hi,<br>> ><br>> > is there a way to expand the area of getFeatureInfo.<br>> > If I click on a feature in a scale of e.g. 1:1M i have to click very<br>> > precisely on the object to get a result (in a scale of 1:10000 itīs<br>> > basically ok).<br>> ><br>> ><br>> > --<br>> > View this message in context: http://www.nabble.com/getFeatureInfo-tp14273029p14273029.html<br>> > Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>> ><br>> > _______________________________________________<br>> > Users mailing list<br>> > Users@openlayers.org<br>> > http://openlayers.org/mailman/listinfo/users<br>> ><br>> _______________________________________________<br>> Users mailing list<br>> Users@openlayers.org<br>> http://openlayers.org/mailman/listinfo/users<br></body>
</html>