Fix various type errors in ol.structs.RTree
This commit is contained in:
@@ -280,8 +280,7 @@ ol.structs.RTree.prototype.insertSubtree_ = function(node, root) {
|
|||||||
*
|
*
|
||||||
* @param {Array.<ol.structs.RTreeNode>} nodes Array of nodes.
|
* @param {Array.<ol.structs.RTreeNode>} nodes Array of nodes.
|
||||||
* @private
|
* @private
|
||||||
* @return {Array.<Array.<ol.structs.RTreeNode>>} An array of two new arrays
|
* @return {Array.<ol.structs.RTreeNode>} An array of two nodes.
|
||||||
* of nodes.
|
|
||||||
*/
|
*/
|
||||||
ol.structs.RTree.prototype.linearSplit_ = function(nodes) {
|
ol.structs.RTree.prototype.linearSplit_ = function(nodes) {
|
||||||
var n = this.pickLinear_(nodes);
|
var n = this.pickLinear_(nodes);
|
||||||
@@ -298,8 +297,7 @@ ol.structs.RTree.prototype.linearSplit_ = function(nodes) {
|
|||||||
*
|
*
|
||||||
* @param {Array.<ol.structs.RTreeNode>} nodes Array of source nodes.
|
* @param {Array.<ol.structs.RTreeNode>} nodes Array of source nodes.
|
||||||
* @private
|
* @private
|
||||||
* @return {Array.<ol.structs.RTreeNode>} An array of two new arrays
|
* @return {Array.<ol.structs.RTreeNode>} An array of two nodes.
|
||||||
* of nodes.
|
|
||||||
*/
|
*/
|
||||||
ol.structs.RTree.prototype.pickLinear_ = function(nodes) {
|
ol.structs.RTree.prototype.pickLinear_ = function(nodes) {
|
||||||
var lowestHighX = nodes.length - 1;
|
var lowestHighX = nodes.length - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user