We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I installed the latest version via npm and required via Browserify:
require('leaflet.layergroup.collision')
I got the following error:
Uncaught ReferenceError: rbush is not defined
I could workaround by changing the require part to the following:
global.rbush = require('rbush') require('leaflet.layergroup.collision')
The text was updated successfully, but these errors were encountered:
in the context of an ionic/angular app we had the same error. it could be solved through calling
import * as rbush from "rbush"; in the first line of Leaflet.LayerGroup.Collision.js
import * as rbush from "rbush";
instead of
let rbush = require("rbush");
on @carlletons fork -> https://github.com/carlleton/Leaflet.LayerGroup.Collision
Sorry, something went wrong.
No branches or pull requests
I installed the latest version via npm and required via Browserify:
require('leaflet.layergroup.collision')
I got the following error:
Uncaught ReferenceError: rbush is not defined
I could workaround by changing the require part to the following:
The text was updated successfully, but these errors were encountered: