In computer science, a "Map" is used to associate a known value/entity to another known value/entity e.g as in your question, ObjectA can be mapped to ObjectB.
A "Transform" is used to convert/transform any acceptable value into another using a function e.g. a "transform" to calculate x^2; x could be any value.
Hence as a "rule of thumb" a map should be used if a finite set of objects/values have a clear relationship, whereas a transform should be used if dealing with a non-finite set of values/entities where a value should be calculated using a function.