#if ($canviewmap)
##are we on an asset or search results of map?
#set($resultview = $userprofile.get("resultview"))
##if( $resultview == "map")
#set( $key = $mediaarchive.getCatalogSettingValue("google-maps-key"))
#if( $key )
#if($detail)
#else
#end
#else
#end
#end
##end