Skip to content
New issue

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

Callback in _onviewbox not called #4

Open
ralphtheninja opened this issue Aug 6, 2022 · 0 comments
Open

Callback in _onviewbox not called #4

ralphtheninja opened this issue Aug 6, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ralphtheninja
Copy link
Member

cb below is never called:

mixmap-peermaps/index.js

Lines 113 to 131 in 6edffea

P.prototype._onviewbox = function (bbox, zoom, cb) {
var self = this
var boxes = self._plan.update(bbox)
for (var i = 0; i < boxes.length; i++) {
self._plan.add(boxes[i])
}
self._zoom = zoom
self._getDb(function (db) {
boxes.forEach(bbox => {
db.query(bbox, { trace })
.then(q => self._loadQuery(bbox, q))
.catch(e => self._error(e))
function trace(tr) {
self._trace[tr.file] = tr
}
})
self._scheduleRecalc()
})
}

which results in the following code in mixmaps not being called

https://github.com/peermaps/mixmap/blob/b65a6794d500eb5f3af03f733d8523c8cd9d19c4/lib/map.js#L107-L142

@ralphtheninja ralphtheninja added the bug Something isn't working label Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant