如何自定义位置图标?

How can I customise the position icon?

我正在尝试用我自己的替换演示中的位置图标,但我还没有弄清楚如何做。 我在 .json 文件中搜索了它的声明,但没有成功。

{
        "class" : "map",
        "colortype" : "rgba",
        "columns" : 1,
        "filename" : 
        [
            "route_arrow.png",
            "route_arrow.png",
            "route_arrow.png",
            "route_arrow.png",
            "route_arrow.png",
            "route_arrow.png"
        ],
        "rows" : 1,
        "textureatlas" : 
        [

            {
                "textureheight" : [ 128, 128, 128, 128, 128, 128 ],
                "textureid" : 55,
                "texturelinear" : true,
                "texturelocation" : [ 0, 0 ],
                "texturename" : "route_arrow",
                "texturewidth" : [ 128, 128, 128,128, 128, 128 ]
            }
        ]
    },

位置图标可在应用程序 SKMapsResources -> SKMaps.bundle-> MapResources-> Common 中找到。有许多图标被使用:

以下是所有实例:

-ccp_2d, ccp_2d@2x, ccp_2d@3x, ccpmedium_2d, ccpmedium_2d@2x, ccpmedium_2d@3x, ccpsmall_2d, ccpsmall_2d@2x, ccpsmall_2d@3x, 这些图标构成了 2D 视图的资源。

-ccp_3d, ccp_3d@2x, ccp_3d@3x, 这些图标构成了 3D 视图的资源。

要更改位置图标,您必须将这些 png 替换为您想要的。 确保所有新图标的大小与原始图标完全相同( 相同的像素密度,例如:32x32、64x64 等)并且它们的颜色仅 RGB.