Hi,

my application offers the possibility to preselect countries that should be displayed on the map. Thus, instead of having all countries, I get only these preselected ones mapped; the others are grayed out. But if a user now uses the query tool and clicks on one of those not-preselected countries, than an mapscript error occurs (naturally). Is there a way to react on such an error warning and continue at another point, so that this "problem" is just ignored and the application can continue to work?

if (!$imgbox)
$map -> queryByPoint($click_pt, MS_MULTIPLE, -1); // here is then the error
else
$map -> queryByRect($click_rt);

"Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. in /www/geodataportal/htdocs/mod_map/etc/php/query.php on line 42"

Thanks for any help!


Reply via email to