Finds a layer by name, useful with loaded maps. Takes map (The map's handle), name (The layer's name). Returns: The layer's number, or -1 if there isn't one.
map
Int
name
String
ground = tmGetLayer(map, "ground")