Permalink
Browse files

Support feature.hittest === false to disable hit test

  • Loading branch information...
1 parent 99719de commit b5425414dba088191bc23f33ecb7fc08b2f9b60e @geary committed Aug 31, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 code/polygonzo.js
View
@@ -514,7 +514,12 @@ PolyGonzo = {
null;
for( var iPoly = -1, poly; poly = polys[++iPoly]; ) {
if( contains( poly, x, y, zoom ) ) {
- return { geo:geo, /*parent:entity,*/ feature:feature, poly:poly };
+ return feature.hittest !== false && {
+ geo:geo,
+ /*parent:entity,*/
+ feature:feature,
+ poly:poly
+ };
}
}
}

0 comments on commit b542541

Please sign in to comment.