Spatial index of layer objects using RTree.js