Home

Awesome

#rTree Build Status

A non-recursive R-Tree library in pure JavaScript with no dependencies. Fork of Jon-Carlos Rivera's fantastic library which sadly seems not to be maintained. MIT Licensed.

##So far:

##API

###Parameters:

###Returns:

###Usage:

##rTree.insert

###Parameters:

###Returns:

###Usage:

##rTree.remove

###Parameters:

###Returns:

###Usage:

##rTree.geoJSON:

###Parameters

###Usage:

myRTree.geoJSON({
	"type":"FeatureCollection",
	"features":[
		{
			"type":"Feature",
			"geometry":{
				"type":"Point",
				"coordinates":[100,1]
			},
			"properties":{
				"prop0":"value0"
			}
		},
		{
			"type":"Feature",
			"geometry":{
				"type":"LineString",
				"coordinates":[
					[100,0],
					[101,1]
				]
			},
			"properties":{
				"prop0":"value0"
			}
		}
	]
});

##rTree.bbox:

###Parameters

###Returns:

###Usage:

##rTree.search

###Parameters:

###Returns:

###Usage:

###Notes

<sup><a name="f1">1</a></sup> Default max node width is currently 6.

<sup><a name="f3">3</a></sup> A Rectangle is any object with public x, y, w, h properties. The object itself is not saved or used directly but copies are made of its x, y, w, h properties.