【问题标题】:Plotting 100 or more pins on Google maps在 Google 地图上绘制 100 个或更多图钉
【发布时间】:2014-07-16 08:32:57
【问题描述】:

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

【问题讨论】:

    标签: iphone cocoa google-maps ios7 gmsmapview


    【解决方案1】:
    {"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}}
    ]}
    

    试试这个

    来源Blits Gmap Editor

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-11
      • 1970-01-01
      • 2021-05-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多