I have a composite index of two properties on an indexeddb objectstore and wish to retrieve a cursor based on the range of both of these properties.
Here's an example object in the store :
{species: 'Oak',xcoord: 123456, ycoord: 654321}
and index :
treeStore.createIndex("treelocation", ["xcoord","ycoord"], { unique: false });
The index creation is succesful and I can see it in the Chrome developer tools, however now I'd like to open a cursor with a keyrange on both the x and y co-ordinates (which will be the extent of a map).
Searching online I can't see how to do this, and opening an index with an array of key ranges doesn't seem to work.