Skip to content

Callback in _onviewbox not called #4

@ralphtheninja

Description

@ralphtheninja

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions