This function takes the following parameters:
The handle for the map object to be destroyed. The handle may be NULL.
A pointer to where to store the handle of the new created map object.