This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):
If the map object was successfully created.
If unable to allocate memory for the new map object.
If the map_ptr argument is NULL.