added check for OpenLayers prescence before attempting to implement the map API with it -otherwise, skip.