Merge pull request #24 from uber/mousemove-radius

Add a radius to mouse move callback
This commit is contained in:
Victor 2015-11-17 12:05:59 -08:00
commit f7af0d8a7d

View File

@ -495,7 +495,9 @@ var MapGL = React.createClass({
if (!this.props.onHoverFeatures) {
return;
}
map.featuresAt([pos.x, pos.y], {}, function callback(error, features) {
map.featuresAt([pos.x, pos.y], {
radius: 1
}, function callback(error, features) {
if (error) {
throw error;
}