The
createTiledIterator method returns a feature iterator over map features
located in a specified region of interest. The tile loaders of the
layers use this iterator to load the tiles when they become available
on screen. That is, they read the map features of the tiles in the
region of interest only.
Here is a basic implementation of this method:
protected IlvMapRegionOfInterestIterator createTiledIterator(IlvMapLayer layer)
throws IOException {
// IlvMapLayer mapLayer = getInsertionLayer();
if (layer != mapLayer) {
// the layer in parameter has nothing to do with this data source
return null;
}
// Create your region of interest feature iterator here,
// basically an iterator over map features in specified region
MyRegionOfInterestIterator iterator = new MyRegionOfInterestIterator();
// configure it as needed (we assume that there is a ‘configure’ method here
for
// clarity purposes)
iterator.configure();
// return it
return iterator;
}