For the high-tech map is also a novice, a lot of features to see the document, ask the technical or the group number: 204668425
In our need to draw a circular polyline irregular graphics mode, open the map specified by the drawing to the middle of the screen
1. First create an array--arrayspace
Circle: You need to calculate the vertical four according to the RADIUS center point of the Circle
//Add all the dots to the circle//set the point of the locationCllocationcoordinate2d destinationcoordinated =Cllocationcoordinate2dmake (latitude,longitude); Mapointannotation* a1=[[Mapointannotation alloc] init]; A1.coordinate=destinationcoordinated; //111000 This is the maximum scale of the meter conversion latitude and longitude, so the calculated points will only be outside the circle DoubleJingwei = (Double) arearadius/111000; //count into a central point[Arrayspace ADDOBJECT:A1]; //four points up and down from the Origin . for(intI=0; i<4; i++) {mapointannotation* a1=[[Mapointannotation alloc] init]; Switch(i) { Case 0: NSLog (@"%LF----%LF", latitude+jingwei,longitude+Jingwei); A1.coordinate= Cllocationcoordinate2dmake (latitude+jingwei,longitude); Break; Case 1: A1.coordinate= Cllocationcoordinate2dmake (latitude-jingwei,longitude); Break; Case 2: A1.coordinate= Cllocationcoordinate2dmake (latitude,longitude+Jingwei); Break; Case 3: A1.coordinate= Cllocationcoordinate2dmake (latitude,longitude-Jingwei); Break; default: Break; } //adding arrays[Arrayspace ADDOBJECT:A1]; }calculate Four Points
2, polyline, polygon join All points---"arrayspace
3, use the method below to control the size displayed in the screen
Add as a point
[self. Mapview showannotations:self. Arrayspace edgepadding:Uiedgeinsetsmake ($, £) Animated:YES];
Add by drawing a diagram
Self.mapview showoverlays:<# (Nsarray *) #> edgepadding:<# (uiedgeinsets) #> animated:<# (BOOL) #>
iOS Gold map to let the specified area or point appear in the middle of the screen