Add a type parameter for map define

Add a type parameter to map define, in order to indicate the type
of the created map. Then, after the map file is created, it executes
a postmap or a postfix reload depending of the type of the map