added conditions above the definition of "map" defining basemaps for terrain with labels and MD Imagery so they could be passed in over the wire in PHP.