// Handle resolution
double resolutionX = env.getWidth() / width;
double resolutionY = env.getHeight() / height;
double resolution = Math.max(resolutionX, resolutionY);
IdentifyParam identifyParam = new IdentifyParam();
identifyParam.setGeometry(identifyGeometry);
identifyParam.setIdentifyType(identifyType);
identifyParam.setResolution(resolution);
identifyParam.setTolerance(nTolerance);
MapServiceInstance instance = (MapServiceInstance) mapService
.getMapServicePool().checkoutIdleInstance();
try {
featureResults = instance.identify(layerIds,