I have a composite index of two properties in the indexeddb object store and you want to get a cursor based on the range of both of these properties.
Here is an example of an object in the repository:
{species: 'Oak',xcoord: 123456, ycoord: 654321}
and index:
treeStore.createIndex("treelocation", ["xcoord","ycoord"], { unique: false });
Creating the index is successful, and I see it in the Chrome developer tools, but now I would like to open the cursor with the key at both x and y coordinates (which will be the size of the map).
Searching the Internet I donโt see how to do this, and opening an index with an array of key ranges does not work.
thanks
Andrew
source share