The quality of the image drawn on the map becomes significantly low for the same code after upgrading the SDK to 10.1.1. I copy/paste the code below. Orange.png is a 90x90 pixel image. Its size is adjusted based on the diameter parameter. As the diameter gets smaller, the image's quality becomes lower. Should I use a bigger image? Is there any parameters that I need to set to improve the quality? (I tried setting graphicsLayer.renderNativeResolution to FALSE/TRUE but it did not change anything..) NSString *imageName = @"Orange.png";
// Creates a custom marker symbol with the picture
AGSPictureMarkerSymbol *myMarkerSymbol = [AGSPictureMarkerSymbol pictureMarkerSymbolWithImageNamed:imageName];
// Adjust the size for the node
myMarkerSymbol.size = CGSizeMake( diameter, diameter );
// Converts latitude and longitude values to mercator
double num = longtitude * 0.017453292519943295;
double x = 6378137.0 * num;
double a = latitude * 0.017453292519943295;
double mercatorX = x;
double mercatorY = 3189068.5 * log((1.0 + sin(a))/(1.0 - sin(a)));
//Create an AGSPoint (which inherits from AGSGeometry) that
//defines where the Graphic will be drawn
AGSPoint* myMarkerPoint = [AGSPoint pointWithX:mercatorX
y:mercatorY
spatialReference:self.mapView.spatialReference];
//NodeInfoTemplate handles what needs to be written in the callout window
NodeInfoTemplate *template = [[NodeInfoTemplate alloc] init];
//Create the Graphic, using the symbol and geometry created earlier
AGSGraphic* myGraphic =[AGSGraphic graphicWithGeometry:myMarkerPoint
symbol:myMarkerSymbol
attributes:nodeDict
infoTemplateDelegate:template];
//Add the graphic to the Graphics layer
[self.graphicsLayer addGraphic:myGraphic];