在Google地图中,我想一次绘制100个或更多针脚,现在我正在使用for loop& amp绘制所有针脚。这花费了更多的时间。是否可以一次绘制所有引脚
for (KZObject *flt in arrayList){
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = r1;
marker.title = [NSString stringWithFormat:@"%@",flt.cvId];
marker.appearAnimation = YES;
marker.icon = [UIImage imageNamed:@"annotationIcon_p"];
marker.map = self.mapview;
}
答案 0 :(得分:0)
{"zoom":17,"tilt":0,"mapTypeId":"roadmap","center":{"lat":51.48258734258928000,"lng":-3.15550769507571800},"overlays": [ {"type":"marker","title":"","content":"","position":{"lat":51.48258734258928000,"lng":-3.15550769507571800}}, {"type":"marker","title":"","content":"","position":{"lat":51.48341717170673000,"lng":-3.15433334291887800}}, {"type":"marker","title":"","content":"","position":{"lat":51.48240026213740000,"lng":-3.15533015030956900}}, {"type":"marker","title":"","content":"","position":{"lat":51.48316744527602000,"lng":-3.15412541474515500}}, {"type":"marker","title":"","content":"","position":{"lat":51.48265396827342000,"lng":-3.15147700313981100}}, {"type":"marker","title":"","content":"","position":{"lat":51.48182419769601000,"lng":-3.14990078269657700}}, {"type":"marker","title":"","content":"","position":{"lat":51.49180210780110000,"lng":-3.17291056975810400}} ]}
试试这个