This function takes the following parameters:
The specified map object. It may be NULL.
Pointer to the location of the new map object copy.
Be sure not to pass map_ptr as a valid am_map structure as the reference will be lost.