0

Google マップで、一度に 100 個以上のピンをプロットしたいのですが、for ループを使用してすべてのピンを手動でプロットしていますが、時間がかかります。一度にすべてのピンをプロットすることは可能ですか?

  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;
}
4

1 に答える 1

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}}
]}  

これを試して

ソース ブリット Gmap エディタ

于 2014-07-16T09:36:11.263 に答える