1

新目标 c. 我正在尝试使用我在“路径”下方获得的坐标并将其绘制在地图上。我该怎么办它似乎无法弄清楚?地图在 AGSMapView 上。这是我如何获得“路径”的代码

NSString *paths = [geometry objectForKey:@"paths"];
NSLog(@"paths:%@",paths);

这是我得到的坐标的一部分

paths:(
    (
            (
        "18301.4400192143",
        "36146.920029251"
    ),
            (
        "18885.8300193054",
        "35820.7600307186"
    ),
            (
        "19550.6400166137",
        "35448.3800265175"
    ),
            (
        "19679.1600169367",
        "35397.5700324551"
    ),
            (
        "19731.7000154429",
        "35383.8700317275"
    ),
            (
        "19799.2400170102",
        "35381.1700292081"
    ),
            (
        "19812.3800146386",
        "35385.4900271837"
    ),
            (
        "19828.5700186147",
        "35394.3100268357"
    ),
            (
        "19856.8600198637",
        "35412.300029967"
    ),
            (
        "19875.230014829",
        "35468.1300296654"
    ),
            (
        "19885.4200190927",
        "35519.1300309952"
    ),
            (
        "19887.8400200627",
        "35531.2600314078"
    ),
            (
        "19924.030018031",
        "35530.2000314836"
    ),
            (
        "20053.9000158305",
        "35572.8800299838"
    ),
            (
        "20071.600021412",
        "35586.4600257241"
    ),
            (
        "20078.7800184669",
        "35595.3100285139"
    )

MapKit 是否仅适用于谷歌地图?

-*edit- 我认为应该如何将带有坐标的地图绘制到地图的图形层中。

请帮忙!谢谢

4

1 回答 1

0

用户提到了 AGSMapView,这表明他使用的是 ArcGis Runtime,而不是 MapKit。解决方案是构建一个AGSMutablePolygon,然后将其添加到 AGSGraphicsLayer。

于 2015-12-25T22:28:42.347 回答