code: protected int getResolutionIndex(double resolution) {
  		if (layer instanceof TileBasedLayer) {
  			return ((TileBasedLayer) layer).getTileConfiguration().getResolutionIndex(resolution);
  		}
  		return viewPort.getResolutionIndex(resolution);
  	}
docs: ------------------------------------------------------------------------