XPLMMapExists

XPLM_API int        XPLMMapExists(
                         const char *         mapIdentifier);

Returns 1 if the map with the specified identifier already exists in X-Plane. In that case, you can safely call XPLMCreateMapLayer() specifying that your layer should be added to that map.