Here are the results of my test:

map.cpp, query_map_point():
...
// tol is the original code tol calculation
featureset_ptr fs = ds->features_at_point(mapnik::coord2d(x,y), tol/4);
...

postgis.cpp:
featureset_ptr postgis_datasource::features_at_point(coord2d const& pt, double 
tol) const
...
Envelope<double> box(pt.x - tol,pt.y - tol,pt.x + tol,pt.y + tol);
...


... with tol/4 you can easily click in point features, even some pixels away. 
With tol/8 it is still possible (and better than default behaviour). So any 
default will do as long as it can be adjusted afterwards on a per Layer basis.

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to