Tiles

public enum Tiles

Generate valid URLs for both supported tileservers.

  • Generate a URL for the base map tileserver.

    Declaration

    Swift

    public static func mapURL(x: Int, y: Int, z: Int) -> URL

    Parameters

    x

    x coordinate

    y

    y coordinate

    z

    z coordinate (zoom level)

    Return Value

    URL for the specified tile.

  • Generate a URL for the floorplan tileserver.

    Declaration

    Swift

    public static func floorplanURL(building: String, floor: Int, x: Int, y: Int, z: Int) -> URL

    Parameters

    building

    building abbreviation

    floor

    floor level

    x

    x coordinate

    y

    y coordinate

    z

    z coordinate (zoom level)

    Return Value

    URL for the specified tile.