TWGEMSDatasets

Documentation for TWGEMSDatasets.

TWGEMSDatasets.textoffsetMethod

Example: Text offset according to align

station_location = DataFrame(
    Lon = [112.1, 112.3, 112.5],
    Lat = [21.1, 23.3, 25.5],
    code = ["YL", "AA", "KUOL"],
    TextAlign = [
        (:center, :top),
        (:right, :bottom),
        (:left, :bottom),
    ]
)
text(station_location.Lon, station_location.Lat;
    text=station_location.code,
    align=station_location.TextAlign,
    offset = textoffset.(station_location.TextAlign, 4),
    fontsize=15
    )
source