mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Merge pull request #24 from uber/mousemove-radius
Add a radius to mouse move callback
This commit is contained in:
commit
f7af0d8a7d
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user